mirror of
https://git.yoctoproject.org/poky
synced 2026-04-21 21:32:12 +02:00
docs: dev-manual-common-tasks: update python webserver example to python3
SimpleHTTPServer is python2 only, the module in python3 is http.server. Let's use this one since everything in Yocto Project is using python3 nowadays. (From yocto-docs rev: a5922b045eca9aa96672f8d75a2f98e17d2280f7) Signed-off-by: Quentin Schulz <foss@0leil.net> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 75338f17b116afadb7360181d071875a68272708) Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
cbad23de16
commit
3ae9ead271
@@ -7223,11 +7223,11 @@ Host or Server Machine Setup
|
||||
|
||||
Although other protocols are possible, a server using HTTP typically
|
||||
serves packages. If you want to use HTTP, then set up and configure a
|
||||
web server such as Apache 2, lighttpd, or SimpleHTTPServer on the
|
||||
web server such as Apache 2, lighttpd, or Python web server on the
|
||||
machine serving the packages.
|
||||
|
||||
To keep things simple, this section describes how to set up a
|
||||
SimpleHTTPServer web server to share package feeds from the developer's
|
||||
Python web server to share package feeds from the developer's
|
||||
machine. Although this server might not be the best for a production
|
||||
environment, the setup is simple and straight forward. Should you want
|
||||
to use a different server more suited for production (e.g. Apache 2,
|
||||
@@ -7242,7 +7242,7 @@ setting of "package_rpm":
|
||||
::
|
||||
|
||||
$ cd ~/poky/build/tmp/deploy/rpm
|
||||
$ python -m SimpleHTTPServer
|
||||
$ python3 -m http.server
|
||||
|
||||
.. _runtime-package-management-target:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user