mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 13:09:50 +00:00
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 <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
361b88c81f
commit
a571f74ef3
@@ -414,58 +414,48 @@
|
|||||||
<literallayout class='monospaced'>
|
<literallayout class='monospaced'>
|
||||||
$ cd /var/www/toaster/poky/
|
$ cd /var/www/toaster/poky/
|
||||||
$ ./bitbake/lib/toaster/manage.py migrate
|
$ ./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 checksettings
|
||||||
$ ./bitbake/lib/toaster/manage.py collectstatic
|
$ ./bitbake/lib/toaster/manage.py collectstatic
|
||||||
</literallayout>
|
</literallayout>
|
||||||
</para>
|
In the previous example, from the <filename>poky</filename>
|
||||||
|
directory, the <filename>migrate</filename> command
|
||||||
|
ensures the database schema changes have propagated
|
||||||
|
correctly (i.e. migrations).
|
||||||
|
The next line sets the Toaster root directory
|
||||||
|
<filename>TOASTER_DIR</filename> and the location
|
||||||
|
of the Toaster configuration file
|
||||||
|
<filename>TOASTER_CONF</filename>, which is relative to
|
||||||
|
<filename>TOASTER_DIR</filename>.
|
||||||
|
The <filename>TEMPLATECONF</filename> value reflects the
|
||||||
|
contents of <filename>poky/.templateconf</filename>, and
|
||||||
|
by default, should include the string "poky".
|
||||||
|
For more information on the Toaster configuration
|
||||||
|
file, see the
|
||||||
|
"<link linkend='configuring-toaster'>Configuring Toaster</link>"
|
||||||
|
section.</para>
|
||||||
|
|
||||||
<para>
|
<para>This line also runs the <filename>checksettings</filename>
|
||||||
For the above set of commands, after moving to the
|
command, which configures the location of the Toaster
|
||||||
<filename>poky</filename> directory,
|
<ulink url='&YOCTO_DOCS_REF_URL;#build-directory'>Build Directory</ulink>.
|
||||||
the <filename>migrate</filename>
|
The Toaster root directory <filename>TOASTER_DIR</filename>
|
||||||
command ensures the database
|
determines where the Toaster build directory
|
||||||
schema has had changes propagated correctly (i.e.
|
is created on the file system.
|
||||||
migrations).
|
In the example above,
|
||||||
</para>
|
<filename>TOASTER_DIR</filename> is set as follows:
|
||||||
|
<literallayout class="monospaced">
|
||||||
<para>
|
|
||||||
The next line sets the Toaster root directory
|
|
||||||
<filename>TOASTER_DIR</filename> and the location of
|
|
||||||
the Toaster configuration file
|
|
||||||
<filename>TOASTER_CONF</filename>, which is
|
|
||||||
relative to the Toaster root directory
|
|
||||||
<filename>TOASTER_DIR</filename>.
|
|
||||||
For more information on the Toaster configuration file,
|
|
||||||
see the
|
|
||||||
"<link linkend='configuring-toaster'>Configuring Toaster</link>"
|
|
||||||
section.
|
|
||||||
</para>
|
|
||||||
|
|
||||||
<para>
|
|
||||||
This line also runs the <filename>checksettings</filename>
|
|
||||||
command, which configures the location of the Toaster
|
|
||||||
<ulink url='&YOCTO_DOCS_REF_URL;#build-directory'>Build Directory</ulink>.
|
|
||||||
The Toaster root directory <filename>TOASTER_DIR</filename>
|
|
||||||
determines where the Toaster build directory
|
|
||||||
is created on the file system.
|
|
||||||
In the example above,
|
|
||||||
<filename>TOASTER_DIR</filename> is set as follows:
|
|
||||||
<literallayout class="monospaced">
|
|
||||||
/var/www/toaster/poky
|
/var/www/toaster/poky
|
||||||
</literallayout>
|
</literallayout>
|
||||||
This setting causes the Toaster build directory to be:
|
This setting causes the Toaster build directory to be:
|
||||||
<literallayout class="monospaced">
|
<literallayout class="monospaced">
|
||||||
/var/www/toaster/poky/build
|
/var/www/toaster/poky/build
|
||||||
</literallayout>
|
</literallayout></para>
|
||||||
</para>
|
|
||||||
|
|
||||||
<para>
|
<para>Finally, the <filename>collectstatic</filename> command
|
||||||
Finally, the <filename>collectstatic</filename> command
|
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 as defined by
|
||||||
be served up by the Apache web server as defined by
|
<filename>STATIC_ROOT</filename>.
|
||||||
<filename>STATIC_ROOT</filename>.
|
|
||||||
</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
|
||||||
|
|||||||
Reference in New Issue
Block a user