From ea438b421d9853c44a81fb4d59661f55e39cdc86 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Tue, 14 Jun 2016 10:30:38 -0700 Subject: dev-manual: Updated the method to set SimpleHTTPServer for testing Fixes [YOCTO #1882] Re-did the steps to set this server up. (From yocto-docs rev: dd51855e97a9fda308564a9e000c2b8ed333e23e) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- .../dev-manual/dev-manual-common-tasks.xml | 39 +++++++--------------- 1 file changed, 12 insertions(+), 27 deletions(-) (limited to 'documentation') diff --git a/documentation/dev-manual/dev-manual-common-tasks.xml b/documentation/dev-manual/dev-manual-common-tasks.xml index b7b623a255..c67468f143 100644 --- a/documentation/dev-manual/dev-manual-common-tasks.xml +++ b/documentation/dev-manual/dev-manual-common-tasks.xml @@ -7655,33 +7655,18 @@ - Use the following steps to set up the SimpleHTTPServer - machine. - These steps assume the build machine and the server are - same machine: - - Create a Directory that - Contains the Packages to Host: - Be sure you have root privileges and place the - directory inside var/www/ - (e.g. /var/www/my_repo/). - To ensure the directory contains the packages you - want to serve, you need to create a symlink from - the package feed area to the directory that hosts - the packages you want to provide: - - my_repo # ln -s ~{TMPDIR}/deploy/packageformat ./ - - - Start the Server: - You can start the server by running the following - commands from the recently created directory: - - $ cd /var/www/my_repo - $ python –m SimpleHTTPServer - - - + From within the build directory where you have built an + image based on your packaging choice (i.e. the + PACKAGE_CLASSES + setting), simply start the server. + The following example assumes a build directory of + ~/poky/build/tmp/deploy/rpm and a + PACKAGE_CLASSES setting of + "package_rpm": + + $ cd ~/poky/build/tmp/deploy/rpm + $ python -m SimpleHTTPServer + -- cgit v1.2.3-54-g00ecf