diff options
| author | Scott Rifenbark <srifenbark@gmail.com> | 2018-04-30 10:00:25 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-05-24 17:16:29 +0100 |
| commit | a6b54193de7145090777b2e86a6af456bc34956a (patch) | |
| tree | 04667f74139baf96412329de677a7d53da9664e0 /documentation | |
| parent | 8a29ca5d51a647edc59d8b55ae592ee1eac74630 (diff) | |
| download | poky-a6b54193de7145090777b2e86a6af456bc34956a.tar.gz | |
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>
Diffstat (limited to 'documentation')
| -rw-r--r-- | documentation/toaster-manual/toaster-manual-setup-and-use.xml | 84 |
1 files changed, 37 insertions, 47 deletions
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 @@ | |||
| 414 | <literallayout class='monospaced'> | 414 | <literallayout class='monospaced'> |
| 415 | $ cd /var/www/toaster/poky/ | 415 | $ cd /var/www/toaster/poky/ |
| 416 | $ ./bitbake/lib/toaster/manage.py migrate | 416 | $ ./bitbake/lib/toaster/manage.py migrate |
| 417 | $ TOASTER_DIR=`pwd` TOASTER_CONF=./meta-poky/conf/toasterconf.json \ | 417 | $ TOASTER_DIR=`pwd` TEMPLATECONF='poky' \ |
| 418 | ./bitbake/lib/toaster/manage.py checksettings | 418 | ./bitbake/lib/toaster/manage.py checksettings |
| 419 | $ ./bitbake/lib/toaster/manage.py collectstatic | 419 | $ ./bitbake/lib/toaster/manage.py collectstatic |
| 420 | </literallayout> | 420 | </literallayout> |
| 421 | </para> | 421 | In the previous example, from the <filename>poky</filename> |
| 422 | 422 | directory, the <filename>migrate</filename> command | |
| 423 | <para> | 423 | ensures the database schema changes have propagated |
| 424 | For the above set of commands, after moving to the | 424 | correctly (i.e. migrations). |
| 425 | <filename>poky</filename> directory, | 425 | The next line sets the Toaster root directory |
| 426 | the <filename>migrate</filename> | 426 | <filename>TOASTER_DIR</filename> and the location |
| 427 | command ensures the database | 427 | of the Toaster configuration file |
| 428 | schema has had changes propagated correctly (i.e. | 428 | <filename>TOASTER_CONF</filename>, which is relative to |
| 429 | migrations). | 429 | <filename>TOASTER_DIR</filename>. |
| 430 | </para> | 430 | The <filename>TEMPLATECONF</filename> value reflects the |
| 431 | 431 | contents of <filename>poky/.templateconf</filename>, and | |
| 432 | <para> | 432 | by default, should include the string "poky". |
| 433 | The next line sets the Toaster root directory | 433 | For more information on the Toaster configuration |
| 434 | <filename>TOASTER_DIR</filename> and the location of | 434 | file, see the |
| 435 | the Toaster configuration file | 435 | "<link linkend='configuring-toaster'>Configuring Toaster</link>" |
| 436 | <filename>TOASTER_CONF</filename>, which is | 436 | section.</para> |
| 437 | relative to the Toaster root directory | 437 | |
| 438 | <filename>TOASTER_DIR</filename>. | 438 | <para>This line also runs the <filename>checksettings</filename> |
| 439 | For more information on the Toaster configuration file, | 439 | command, which configures the location of the Toaster |
| 440 | see the | 440 | <ulink url='&YOCTO_DOCS_REF_URL;#build-directory'>Build Directory</ulink>. |
| 441 | "<link linkend='configuring-toaster'>Configuring Toaster</link>" | 441 | The Toaster root directory <filename>TOASTER_DIR</filename> |
| 442 | section. | 442 | determines where the Toaster build directory |
| 443 | </para> | 443 | is created on the file system. |
| 444 | 444 | In the example above, | |
| 445 | <para> | 445 | <filename>TOASTER_DIR</filename> is set as follows: |
| 446 | This line also runs the <filename>checksettings</filename> | 446 | <literallayout class="monospaced"> |
| 447 | command, which configures the location of the Toaster | ||
| 448 | <ulink url='&YOCTO_DOCS_REF_URL;#build-directory'>Build Directory</ulink>. | ||
| 449 | The Toaster root directory <filename>TOASTER_DIR</filename> | ||
| 450 | determines where the Toaster build directory | ||
| 451 | is created on the file system. | ||
| 452 | In the example above, | ||
| 453 | <filename>TOASTER_DIR</filename> is set as follows: | ||
| 454 | <literallayout class="monospaced"> | ||
| 455 | /var/www/toaster/poky | 447 | /var/www/toaster/poky |
| 456 | </literallayout> | 448 | </literallayout> |
| 457 | This setting causes the Toaster build directory to be: | 449 | This setting causes the Toaster build directory to be: |
| 458 | <literallayout class="monospaced"> | 450 | <literallayout class="monospaced"> |
| 459 | /var/www/toaster/poky/build | 451 | /var/www/toaster/poky/build |
| 460 | </literallayout> | 452 | </literallayout></para> |
| 461 | </para> | 453 | |
| 462 | 454 | <para>Finally, the <filename>collectstatic</filename> command | |
| 463 | <para> | 455 | is a Django framework command that collects all the |
| 464 | Finally, the <filename>collectstatic</filename> command | 456 | statically served files into a designated directory to |
| 465 | is a Django framework command that collects all the | 457 | be served up by the Apache web server as defined by |
| 466 | statically served files into a designated directory to | 458 | <filename>STATIC_ROOT</filename>. |
| 467 | be served up by the Apache web server as defined by | ||
| 468 | <filename>STATIC_ROOT</filename>. | ||
| 469 | </para></listitem> | 459 | </para></listitem> |
| 470 | <listitem><para> | 460 | <listitem><para> |
| 471 | Add an Apache configuration file for Toaster to your Apache web | 461 | Add an Apache configuration file for Toaster to your Apache web |
