From 9a5af9c94b9e0c65dc0d38c2a780a27a011533e6 Mon Sep 17 00:00:00 2001 From: Michael Wood Date: Tue, 12 Jul 2016 11:12:46 -0700 Subject: toaster-manual: Update toaster start documentation - Update starting toaster to source toaster start - Add webport address documentation - Remove redundant "syncdb" call - Make it clearer that collectstatic uses STATIC_ROOT (From yocto-docs rev: 75516923f72b8d1f52cfd62281f71b637c9cac93) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- .../toaster-manual-setup-and-use.xml | 28 +++++++++++++++++----- 1 file changed, 22 insertions(+), 6 deletions(-) (limited to 'documentation/toaster-manual') diff --git a/documentation/toaster-manual/toaster-manual-setup-and-use.xml b/documentation/toaster-manual/toaster-manual-setup-and-use.xml index e3f7bfdf08..c9ea8814aa 100644 --- a/documentation/toaster-manual/toaster-manual-setup-and-use.xml +++ b/documentation/toaster-manual/toaster-manual-setup-and-use.xml @@ -31,7 +31,7 @@ poky/build), start Toaster using this command: - $ source ../bitbake/bin/toaster + $ source toaster start You can now run your builds from the command line, or with Toaster as explained in section @@ -56,7 +56,23 @@ set a different port. For example, the following command sets the port to "8400": - $ source ../bitbake/bin/toaster webport=8400 + $ source toaster start webport=8400 + + + + +
+ Setting a Different Address + + + By default, Toaster binds to the loop back address + (i.e. localhost). + You can use the WEBPORT parameter to + set a different host. + For example, the following command sets the host and port + to "192.168.0.1:8400": + + $ source toaster start webport=192.168.0.1:8400
@@ -326,7 +342,6 @@ default data, and gather the statically-served files: $ cd /var/www/toaster/poky/ - $ ./bitbake/lib/toaster/manage.py syncdb $ ./bitbake/lib/toaster/manage.py migrate $ TOASTER_DIR=`pwd` TOASTER_CONF=./meta-poky/conf/toasterconf.json ./bitbake/lib/toaster/manage.py checksettings $ ./bitbake/lib/toaster/manage.py collectstatic @@ -336,8 +351,8 @@ For the above set of commands, after moving to the poky directory, - the syncdb and migrate - commands ensure the database + the migrate + command ensures the database schema has had changes propagated correctly (i.e. migrations). @@ -377,7 +392,8 @@ Finally, the collectstatic command is a Django framework command that collects all the statically served files into a designated directory to - be served up by the Apache web server. + be served up by the Apache web server as defined by + STATIC_ROOT. Add an Apache configuration file for Toaster to your Apache web -- cgit v1.2.3-54-g00ecf