summaryrefslogtreecommitdiffstats
path: root/documentation/dev-manual
diff options
context:
space:
mode:
authorScott Rifenbark <srifenbark@gmail.com>2016-06-14 10:30:38 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-08-19 08:42:18 +0100
commitea438b421d9853c44a81fb4d59661f55e39cdc86 (patch)
treed10f1ec11e75cea3003c900a242993b510504585 /documentation/dev-manual
parent45f2a20349836d173f26dc6f4adebeac57709ac9 (diff)
downloadpoky-ea438b421d9853c44a81fb4d59661f55e39cdc86.tar.gz
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 <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/dev-manual')
-rw-r--r--documentation/dev-manual/dev-manual-common-tasks.xml39
1 files changed, 12 insertions, 27 deletions
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 @@
7655 </para> 7655 </para>
7656 7656
7657 <para> 7657 <para>
7658 Use the following steps to set up the SimpleHTTPServer 7658 From within the build directory where you have built an
7659 machine. 7659 image based on your packaging choice (i.e. the
7660 These steps assume the build machine and the server are 7660 <ulink url='&YOCTO_DOCS_REF_URL;#var-PACKAGE_CLASSES'><filename>PACKAGE_CLASSES</filename></ulink>
7661 same machine: 7661 setting), simply start the server.
7662 <orderedlist> 7662 The following example assumes a build directory of
7663 <listitem><para><emphasis>Create a Directory that 7663 <filename>~/poky/build/tmp/deploy/rpm</filename> and a
7664 Contains the Packages to Host:</emphasis> 7664 <filename>PACKAGE_CLASSES</filename> setting of
7665 Be sure you have root privileges and place the 7665 "package_rpm":
7666 directory inside <filename>var/www/</filename> 7666 <literallayout class='monospaced'>
7667 (e.g. <filename>/var/www/my_repo/</filename>). 7667 $ cd ~/poky/build/tmp/deploy/rpm
7668 To ensure the directory contains the packages you 7668 $ python -m SimpleHTTPServer
7669 want to serve, you need to create a symlink from 7669 </literallayout>
7670 the package feed area to the directory that hosts
7671 the packages you want to provide:
7672 <literallayout class='monospaced'>
7673 my_repo # ln -s ~{TMPDIR}/deploy/<replaceable>packageformat</replaceable> ./
7674 </literallayout>
7675 </para></listitem>
7676 <listitem><para><emphasis>Start the Server:</emphasis>
7677 You can start the server by running the following
7678 commands from the recently created directory:
7679 <literallayout class='monospaced'>
7680 $ cd /var/www/my_repo
7681 $ python –m SimpleHTTPServer
7682 </literallayout>
7683 </para></listitem>
7684 </orderedlist>
7685 </para> 7670 </para>
7686 </section> 7671 </section>
7687 7672