toaster-manual: Updated instructions for production setup.
Current instructions were wrong. Applied changes to correct them. Author: Belen Barros Pena <belen.barros.pena@intel.com> (From yocto-docs rev: edbcd9e2ef35772008107ff00ebb8e6bc71b1d50) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
4b4a8a6c15
commit
7705b87dc6
|
@ -276,6 +276,7 @@
|
||||||
'PASSWORD': 'yourpasswordhere',
|
'PASSWORD': 'yourpasswordhere',
|
||||||
'HOST': 'localhost',
|
'HOST': 'localhost',
|
||||||
'PORT': '3306',
|
'PORT': '3306',
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</literallayout>
|
</literallayout>
|
||||||
</para></listitem>
|
</para></listitem>
|
||||||
|
@ -298,7 +299,7 @@
|
||||||
server defined earlier:
|
server defined earlier:
|
||||||
<literallayout class='monospaced'>
|
<literallayout class='monospaced'>
|
||||||
$ mysql -u root -p
|
$ mysql -u root -p
|
||||||
mysql> CREATE DATABASE toaster;
|
mysql> CREATE DATABASE toaster_data;
|
||||||
mysql> CREATE USER 'toaster'@'localhost' identified by 'yourpasswordhere';
|
mysql> CREATE USER 'toaster'@'localhost' identified by 'yourpasswordhere';
|
||||||
mysql> GRANT all on toaster_data.* to 'toaster'@'localhost';
|
mysql> GRANT all on toaster_data.* to 'toaster'@'localhost';
|
||||||
mysql> quit
|
mysql> quit
|
||||||
|
@ -309,9 +310,9 @@
|
||||||
default data, and gather the statically-served files:
|
default data, and gather the statically-served files:
|
||||||
<literallayout class='monospaced'>
|
<literallayout class='monospaced'>
|
||||||
$ cd /var/www/toaster/poky/
|
$ cd /var/www/toaster/poky/
|
||||||
$ ./bitbake/lib/toaster/manage.py syncdb --migrate
|
$ ./bitbake/lib/toaster/manage.py syncdb
|
||||||
$ ./bitbake/lib/toaster/manage.py loadconf ./meta-yocto/conf/toasterconf.json
|
$ ./bitbake/lib/toaster/manage.py migrate
|
||||||
$ ./bitbake/lib/toaster/manage.py lsupdates
|
$ TOASTER_DIR=`pwd` TOASTER_CONF=./meta-yocto/conf/toasterconf.json ./bitbake/lib/toaster/manage.py checksettings
|
||||||
$ ./bitbake/lib/toaster/manage.py collectstatic
|
$ ./bitbake/lib/toaster/manage.py collectstatic
|
||||||
</literallayout>
|
</literallayout>
|
||||||
</para>
|
</para>
|
||||||
|
@ -319,33 +320,20 @@
|
||||||
<para>
|
<para>
|
||||||
For the above set of commands, after moving to the
|
For the above set of commands, after moving to the
|
||||||
<filename>poky</filename> directory,
|
<filename>poky</filename> directory,
|
||||||
the <filename>syncdb</filename> command with the
|
the <filename>syncdb</filename> and <filename>migrate</filename>
|
||||||
<filename>migrate</filename> option makes sure the database
|
commands ensure the database
|
||||||
schema has had changes propagated correctly (i.e.
|
schema has had changes propagated correctly (i.e.
|
||||||
migrations).
|
migrations).
|
||||||
See the
|
|
||||||
<ulink url='https://south.readthedocs.org/en/latest/commands.html#syncdb'><filename>syncdb</filename></ulink>
|
|
||||||
command for more information.
|
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
The
|
The next line sets the Toaster root directory
|
||||||
<link linkend='toaster-command-loadconf'><filename>loadconf</filename></link>
|
<filename>TOASTER_DIR</filename>, and the location of
|
||||||
command loads the
|
the Toaster configuration file <filename>TOASTER_CONF</filename>,
|
||||||
<filename>./meta-yocto/conf/toasterconf.json</filename>
|
relative to the root directory. For more information on the
|
||||||
JSON file.
|
Toaster configuration file see the
|
||||||
</para>
|
"<link linkend='toaster-json-files'>JSON Files</link>"
|
||||||
|
section of this manual.
|
||||||
<para>
|
|
||||||
The <filename>lsupdates</filename> command fetches
|
|
||||||
information about machines, recipes and
|
|
||||||
layers available as part of OpenEmbedded.
|
|
||||||
The information is fetched from the
|
|
||||||
<ulink url='http://layers.openembedded.org/'>OpenEmbedded Metadata Index</ulink>.
|
|
||||||
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."
|
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
|
@ -353,8 +341,6 @@
|
||||||
is a Django framework command that collects all the
|
is a Django framework command that collects all the
|
||||||
statically served files into a designated directory to
|
statically served files into a designated directory to
|
||||||
be served up by the Apache web server.
|
be served up by the Apache web server.
|
||||||
For more information on this Django command, see
|
|
||||||
<ulink url='https://docs.djangoproject.com/en/1.7/ref/contrib/staticfiles/'></ulink>.
|
|
||||||
</para></listitem>
|
</para></listitem>
|
||||||
<listitem><para>
|
<listitem><para>
|
||||||
Add an Apache configuration file for Toaster to your Apache web
|
Add an Apache configuration file for Toaster to your Apache web
|
||||||
|
@ -389,6 +375,7 @@
|
||||||
<literallayout class='monospaced'>
|
<literallayout class='monospaced'>
|
||||||
$ sudo a2enmod wsgi
|
$ sudo a2enmod wsgi
|
||||||
$ sudo a2enconf toaster
|
$ sudo a2enconf toaster
|
||||||
|
$ chmod +x bitbake/lib/toaster/toastermain/wsgi.py
|
||||||
</literallayout>
|
</literallayout>
|
||||||
Finally, restart Apache to make sure all new configuration
|
Finally, restart Apache to make sure all new configuration
|
||||||
is loaded.
|
is loaded.
|
||||||
|
|
Loading…
Reference in New Issue