diff options
Diffstat (limited to 'documentation/dev-manual/dev-manual-common-tasks.xml')
-rw-r--r-- | documentation/dev-manual/dev-manual-common-tasks.xml | 39 |
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 | ||