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: 45e073a60ef7b1d540439b621266a9019a3d2947)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Scott Rifenbark 2016-06-14 10:30:38 -07:00 committed by Richard Purdie
parent fadcb31841
commit 26d2f28286
1 changed files with 12 additions and 27 deletions

View File

@ -7655,33 +7655,18 @@
</para> </para>
<para> <para>
Use the following steps to set up the SimpleHTTPServer From within the build directory where you have built an
machine. image based on your packaging choice (i.e. the
These steps assume the build machine and the server are <ulink url='&YOCTO_DOCS_REF_URL;#var-PACKAGE_CLASSES'><filename>PACKAGE_CLASSES</filename></ulink>
same machine: setting), simply start the server.
<orderedlist> The following example assumes a build directory of
<listitem><para><emphasis>Create a Directory that <filename>~/poky/build/tmp/deploy/rpm</filename> and a
Contains the Packages to Host:</emphasis> <filename>PACKAGE_CLASSES</filename> setting of
Be sure you have root privileges and place the "package_rpm":
directory inside <filename>var/www/</filename> <literallayout class='monospaced'>
(e.g. <filename>/var/www/my_repo/</filename>). $ cd ~/poky/build/tmp/deploy/rpm
To ensure the directory contains the packages you $ python -m SimpleHTTPServer
want to serve, you need to create a symlink from </literallayout>
the package feed area to the directory that hosts
the packages you want to provide:
<literallayout class='monospaced'>
my_repo # ln -s ~{TMPDIR}/deploy/<replaceable>packageformat</replaceable> ./
</literallayout>
</para></listitem>
<listitem><para><emphasis>Start the Server:</emphasis>
You can start the server by running the following
commands from the recently created directory:
<literallayout class='monospaced'>
$ cd /var/www/my_repo
$ python m SimpleHTTPServer
</literallayout>
</para></listitem>
</orderedlist>
</para> </para>
</section> </section>