diff options
author | Michael Wood <michael.g.wood@intel.com> | 2016-07-12 11:12:46 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-07-19 15:04:50 +0100 |
commit | 9a5af9c94b9e0c65dc0d38c2a780a27a011533e6 (patch) | |
tree | 9c75374e3ded2bd956ffa499dc593898f27a5796 | |
parent | e92b3a82417401c630fa5b3182e3177980ac12d8 (diff) | |
download | poky-9a5af9c94b9e0c65dc0d38c2a780a27a011533e6.tar.gz |
toaster-manual: Update toaster start documentation
- Update starting toaster to source toaster start
- Add webport address documentation
- Remove redundant "syncdb" call
- Make it clearer that collectstatic uses STATIC_ROOT
(From yocto-docs rev: 75516923f72b8d1f52cfd62281f71b637c9cac93)
Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | documentation/toaster-manual/toaster-manual-setup-and-use.xml | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/documentation/toaster-manual/toaster-manual-setup-and-use.xml b/documentation/toaster-manual/toaster-manual-setup-and-use.xml index e3f7bfdf08..c9ea8814aa 100644 --- a/documentation/toaster-manual/toaster-manual-setup-and-use.xml +++ b/documentation/toaster-manual/toaster-manual-setup-and-use.xml | |||
@@ -31,7 +31,7 @@ | |||
31 | <filename>poky/build</filename>), start Toaster using this | 31 | <filename>poky/build</filename>), start Toaster using this |
32 | command: | 32 | command: |
33 | <literallayout class='monospaced'> | 33 | <literallayout class='monospaced'> |
34 | $ source ../bitbake/bin/toaster | 34 | $ source toaster start |
35 | </literallayout> | 35 | </literallayout> |
36 | You can now run your builds from the command line, or with | 36 | You can now run your builds from the command line, or with |
37 | Toaster as explained in section | 37 | Toaster as explained in section |
@@ -56,7 +56,23 @@ | |||
56 | set a different port. | 56 | set a different port. |
57 | For example, the following command sets the port to "8400": | 57 | For example, the following command sets the port to "8400": |
58 | <literallayout class='monospaced'> | 58 | <literallayout class='monospaced'> |
59 | $ source ../bitbake/bin/toaster webport=8400 | 59 | $ source toaster start webport=8400 |
60 | </literallayout> | ||
61 | </para> | ||
62 | </section> | ||
63 | |||
64 | <section id='setting-a-different-address'> | ||
65 | <title>Setting a Different Address</title> | ||
66 | |||
67 | <para> | ||
68 | By default, Toaster binds to the loop back address | ||
69 | (i.e. localhost). | ||
70 | You can use the <filename>WEBPORT</filename> parameter to | ||
71 | set a different host. | ||
72 | For example, the following command sets the host and port | ||
73 | to "192.168.0.1:8400": | ||
74 | <literallayout class='monospaced'> | ||
75 | $ source toaster start webport=192.168.0.1:8400 | ||
60 | </literallayout> | 76 | </literallayout> |
61 | </para> | 77 | </para> |
62 | </section> | 78 | </section> |
@@ -326,7 +342,6 @@ | |||
326 | default data, and gather the statically-served files: | 342 | default data, and gather the statically-served files: |
327 | <literallayout class='monospaced'> | 343 | <literallayout class='monospaced'> |
328 | $ cd /var/www/toaster/poky/ | 344 | $ cd /var/www/toaster/poky/ |
329 | $ ./bitbake/lib/toaster/manage.py syncdb | ||
330 | $ ./bitbake/lib/toaster/manage.py migrate | 345 | $ ./bitbake/lib/toaster/manage.py migrate |
331 | $ TOASTER_DIR=`pwd` TOASTER_CONF=./meta-poky/conf/toasterconf.json ./bitbake/lib/toaster/manage.py checksettings | 346 | $ TOASTER_DIR=`pwd` TOASTER_CONF=./meta-poky/conf/toasterconf.json ./bitbake/lib/toaster/manage.py checksettings |
332 | $ ./bitbake/lib/toaster/manage.py collectstatic | 347 | $ ./bitbake/lib/toaster/manage.py collectstatic |
@@ -336,8 +351,8 @@ | |||
336 | <para> | 351 | <para> |
337 | For the above set of commands, after moving to the | 352 | For the above set of commands, after moving to the |
338 | <filename>poky</filename> directory, | 353 | <filename>poky</filename> directory, |
339 | the <filename>syncdb</filename> and <filename>migrate</filename> | 354 | the <filename>migrate</filename> |
340 | commands ensure the database | 355 | command ensures the database |
341 | schema has had changes propagated correctly (i.e. | 356 | schema has had changes propagated correctly (i.e. |
342 | migrations). | 357 | migrations). |
343 | </para> | 358 | </para> |
@@ -377,7 +392,8 @@ | |||
377 | Finally, the <filename>collectstatic</filename> command | 392 | Finally, the <filename>collectstatic</filename> command |
378 | is a Django framework command that collects all the | 393 | is a Django framework command that collects all the |
379 | statically served files into a designated directory to | 394 | statically served files into a designated directory to |
380 | be served up by the Apache web server. | 395 | be served up by the Apache web server as defined by |
396 | <filename>STATIC_ROOT</filename>. | ||
381 | </para></listitem> | 397 | </para></listitem> |
382 | <listitem><para> | 398 | <listitem><para> |
383 | Add an Apache configuration file for Toaster to your Apache web | 399 | Add an Apache configuration file for Toaster to your Apache web |