toaster-manual: Updates on how to start Toaster.

Recently, the way to start Toaster has been simplified.
The only way to start it now is to source toaster script.
Builds can be run either from command line or from Toaster
web interface.

Updated instructions to start toaster according to the
changes described above.

(From yocto-docs rev: 2e980c9157abad073e7d08309a99cb2f515441c0)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ed Bartosh 2016-01-07 13:14:32 -06:00 committed by Richard Purdie
parent 798e8b8d03
commit bf81969bbc
1 changed files with 8 additions and 59 deletions

View File

@ -17,30 +17,10 @@
</para> </para>
<para> <para>
If you want to configure and start your builds using the Navigate to the root of your
Toaster web interface
(i.e. "<link linkend='toaster-build-mode'>Build Mode</link>"),
navigate to the root of your
<ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink> <ulink url='&YOCTO_DOCS_DEV_URL;#source-directory'>Source Directory</ulink>
(e.g. <filename>poky</filename>): (e.g. <filename>poky</filename>):
<literallayout class='monospaced'> <literallayout class='monospaced'>
$ cd poky
</literallayout>
Next, start Toaster:
<literallayout class='monospaced'>
$ bitbake/bin/toaster
</literallayout>
Open your favourite browser and enter the following:
<literallayout class='monospaced'>
http://127.0.0.1:8000
</literallayout>
If you would rather configure and start your builds
using the command line
(i.e. <link linkend='toaster-analysis-mode'>Analysis Mode</link>),
you can get Toaster to "listen"
to your builds and collect information about them.
To do that, navigate to the root of your Source Directory:
<literallayout class='monospaced'>
$ cd poky $ cd poky
</literallayout> </literallayout>
Once in that directory, source the build environment script: Once in that directory, source the build environment script:
@ -74,12 +54,7 @@
By default, Toaster starts on port 8000. By default, Toaster starts on port 8000.
You can use the <filename>WEBPORT</filename> parameter to You can use the <filename>WEBPORT</filename> parameter to
set a different port. set a different port.
For example, either of the following commands sets the For example, the following command sets the port to "8400":
port to "8400":
<literallayout class='monospaced'>
$ bitbake/bin/toaster webport=8400
</literallayout>
or
<literallayout class='monospaced'> <literallayout class='monospaced'>
$ source ../bitbake/bin/toaster webport=8400 $ source ../bitbake/bin/toaster webport=8400
</literallayout> </literallayout>
@ -90,18 +65,10 @@
<title>The Directory for Cloning Layers</title> <title>The Directory for Cloning Layers</title>
<para> <para>
If you are running Toaster in
<link linkend='toaster-build-mode'>Build Mode</link>,
Toaster creates a <filename>_toaster_clones</filename> Toaster creates a <filename>_toaster_clones</filename>
directory inside your Source Directory directory inside your Source Directory
(i.e. <filename>poky</filename>). (i.e. <filename>poky</filename>) to clone any layers
For example, suppose you use this command to start Toaster: needed for your builds.
<literallayout class='monospaced'>
poky/bitbake/bin/toaster
</literallayout>
In this example, Toaster creates and uses the
<filename>poky/_toaster_clones</filename>
directory to clone any layers needed for your builds.
</para> </para>
<para> <para>
@ -119,17 +86,9 @@
<title>The Build Directory</title> <title>The Build Directory</title>
<para> <para>
If you are running Toaster in
<link linkend='toaster-build-mode'>Build Mode</link>,
Toaster creates a build directory within your Source Toaster creates a build directory within your Source
Directory (e.g. <filename>poky</filename>). Directory (e.g. <filename>poky</filename>) to execute
For example, suppose you use this command to start Toaster: the builds.
<literallayout class='monospaced'>
poky/bitbake/bin/toaster
</literallayout>
In this example, Toaster creates and uses the
<filename>poky/build</filename>
directory to execute the builds.
</para> </para>
<para> <para>
@ -138,7 +97,7 @@
the <filename>TOASTER_DIR</filename> environment variable, the <filename>TOASTER_DIR</filename> environment variable,
which takes precedence over your current working directory. which takes precedence over your current working directory.
Setting this environment variable causes Toaster to use Setting this environment variable causes Toaster to use
<filename>$TOASTER_DIR./build</filename> as the build directory. <filename>$TOASTER_DIR/build</filename> as the build directory.
</para> </para>
</section> </section>
@ -219,10 +178,7 @@
The production instance is also the setup that can cope with The production instance is also the setup that can cope with
heavier loads on the web service. heavier loads on the web service.
Use the instructions in the following sections to set up Use the instructions in the following sections to set up
Toaster in Toaster to run builds through the Toaster web interface.
<link linkend='toaster-build-mode'>Build Mode</link>
where builds and projects are run,
viewed, and defined through the Toaster web interface.
</para> </para>
<section id='toaster-production-instance-requirements'> <section id='toaster-production-instance-requirements'>
@ -335,13 +291,6 @@
STATIC_ROOT = '/var/www/toaster/static_files/' STATIC_ROOT = '/var/www/toaster/static_files/'
</literallayout> </literallayout>
</para></listitem> </para></listitem>
<listitem><para>
Enable Build Mode by adding the following
line to <filename>settings.py</filename>:
<literallayout class='monospaced'>
BUILD_MODE=True
</literallayout>
</para></listitem>
</itemizedlist> </itemizedlist>
</para></listitem> </para></listitem>
<listitem><para> <listitem><para>