From a6b54193de7145090777b2e86a6af456bc34956a Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Mon, 30 Apr 2018 10:00:25 -0700 Subject: toaster-manual: Updated database schema step for Toaster The step for getting toaster to create the database schema, default data, and gather the statically-served files changed. I updated with the proper steps. (From yocto-docs rev: 2c3f7ac7f9419c32147be860897984d391a0e930) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- .../toaster-manual-setup-and-use.xml | 84 ++++++++++------------ 1 file changed, 37 insertions(+), 47 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 25762a603a..0d7bbefe67 100644 --- a/documentation/toaster-manual/toaster-manual-setup-and-use.xml +++ b/documentation/toaster-manual/toaster-manual-setup-and-use.xml @@ -414,58 +414,48 @@ $ cd /var/www/toaster/poky/ $ ./bitbake/lib/toaster/manage.py migrate - $ TOASTER_DIR=`pwd` TOASTER_CONF=./meta-poky/conf/toasterconf.json \ + $ TOASTER_DIR=`pwd` TEMPLATECONF='poky' \ ./bitbake/lib/toaster/manage.py checksettings $ ./bitbake/lib/toaster/manage.py collectstatic - - - - For the above set of commands, after moving to the - poky directory, - the migrate - command ensures the database - schema has had changes propagated correctly (i.e. - migrations). - - - - The next line sets the Toaster root directory - TOASTER_DIR and the location of - the Toaster configuration file - TOASTER_CONF, which is - relative to the Toaster root directory - TOASTER_DIR. - For more information on the Toaster configuration file, - see the - "Configuring Toaster" - section. - - - - This line also runs the checksettings - command, which configures the location of the Toaster - Build Directory. - The Toaster root directory TOASTER_DIR - determines where the Toaster build directory - is created on the file system. - In the example above, - TOASTER_DIR is set as follows: - + In the previous example, from the poky + directory, the migrate command + ensures the database schema changes have propagated + correctly (i.e. migrations). + The next line sets the Toaster root directory + TOASTER_DIR and the location + of the Toaster configuration file + TOASTER_CONF, which is relative to + TOASTER_DIR. + The TEMPLATECONF value reflects the + contents of poky/.templateconf, and + by default, should include the string "poky". + For more information on the Toaster configuration + file, see the + "Configuring Toaster" + section. + + This line also runs the checksettings + command, which configures the location of the Toaster + Build Directory. + The Toaster root directory TOASTER_DIR + determines where the Toaster build directory + is created on the file system. + In the example above, + TOASTER_DIR is set as follows: + /var/www/toaster/poky - - This setting causes the Toaster build directory to be: - + + This setting causes the Toaster build directory to be: + /var/www/toaster/poky/build - - - - - 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 as defined by - STATIC_ROOT. + + + 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 as defined by + STATIC_ROOT. Add an Apache configuration file for Toaster to your Apache web -- cgit v1.2.3-54-g00ecf