From a23d2625e20b25b9ae102b6cb78641bff07ce934 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Mon, 25 Jan 2016 07:25:49 -0800 Subject: toaster-manual: Updated instructions for production setup. Current instructions were wrong. Applied changes to correct them. Author: Belen Barros Pena (From yocto-docs rev: 609e7bd8847cba70e49f4c8a58524392fdc1bd41) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- .../toaster-manual-setup-and-use.xml | 43 ++++++++-------------- 1 file changed, 15 insertions(+), 28 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 74c00c498c..356b7fbf9c 100644 --- a/documentation/toaster-manual/toaster-manual-setup-and-use.xml +++ b/documentation/toaster-manual/toaster-manual-setup-and-use.xml @@ -318,6 +318,7 @@ 'PASSWORD': 'yourpasswordhere', 'HOST': 'localhost', 'PORT': '3306', + } } @@ -347,7 +348,7 @@ server defined earlier: $ mysql -u root -p - mysql> CREATE DATABASE toaster; + mysql> CREATE DATABASE toaster_data; mysql> CREATE USER 'toaster'@'localhost' identified by 'yourpasswordhere'; mysql> GRANT all on toaster_data.* to 'toaster'@'localhost'; mysql> quit @@ -358,9 +359,9 @@ default data, and gather the statically-served files: $ cd /var/www/toaster/poky/ - $ ./bitbake/lib/toaster/manage.py syncdb --migrate - $ ./bitbake/lib/toaster/manage.py loadconf ./meta-yocto/conf/toasterconf.json - $ ./bitbake/lib/toaster/manage.py lsupdates + $ ./bitbake/lib/toaster/manage.py syncdb + $ ./bitbake/lib/toaster/manage.py migrate + $ TOASTER_DIR=`pwd` TOASTER_CONF=./meta-yocto/conf/toasterconf.json ./bitbake/lib/toaster/manage.py checksettings $ ./bitbake/lib/toaster/manage.py collectstatic @@ -368,33 +369,20 @@ For the above set of commands, after moving to the poky directory, - the syncdb command with the - migrate option makes sure the database + the syncdb and migrate + commands ensure the database schema has had changes propagated correctly (i.e. migrations). - See the - syncdb - command for more information. - The - loadconf - command loads the - ./meta-yocto/conf/toasterconf.json - JSON file. - - - - The lsupdates command fetches - information about machines, recipes and - layers available as part of OpenEmbedded. - The information is fetched from the - OpenEmbedded Metadata Index. - This information provides easy access to metadata - from Toaster, and it is key for Toaster's usability. - It is not recommended that you use Toaster without - fetching this information." + The next line sets the Toaster root directory + TOASTER_DIR, and the location of + the Toaster configuration file TOASTER_CONF, + relative to the root directory. For more information on the + Toaster configuration file see the + "JSON Files" + section of this manual. @@ -402,8 +390,6 @@ 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. - For more information on this Django command, see - . Add an Apache configuration file for Toaster to your Apache web @@ -438,6 +424,7 @@ $ sudo a2enmod wsgi $ sudo a2enconf toaster + $ chmod +x bitbake/lib/toaster/toastermain/wsgi.py Finally, restart Apache to make sure all new configuration is loaded. -- cgit v1.2.3-54-g00ecf