Skip to contentSkip to conversation

toaster: update documentation about production set up

PATCH In review Belen Barros Pena 3 participants 3 messages Jan 25, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 toaster: update documentation about production set up

From: Belen Barros Pena <[email protected]>

The instructions the Toaster manual provides for the production set up are not up-to-date, so update them.

The changes should be applied to both master and jethro.

---
 .../toaster-manual-setup-and-use.xml               | 43 ++++++++--------------
 1 file changed, 15 insertions(+), 28 deletions(-)
documentation/toaster-manual/toaster-manual-setup-and-use.xml +15 -28
index 6a69706..6c557a4 100644
@@ -276,6 +276,7 @@
              'PASSWORD': 'yourpasswordhere',
              'HOST': 'localhost',
              'PORT': '3306',
+         }
      }
                                 </literallayout>
                                 </para></listitem>
@@ -298,7 +299,7 @@
                         server defined earlier:
                         <literallayout class='monospaced'>
      $ mysql -u root -p
-     mysql> CREATE DATABASE toaster;
+     mysql> CREATE DATABASE toaster_data;
      mysql> CREATE USER 'toaster'@'localhost' identified by 'yourpasswordhere';
      mysql> GRANT all on toaster_data.* to 'toaster'@'localhost';
      mysql> quit
@@ -309,9 +310,9 @@
                         default data, and gather the statically-served files:
                         <literallayout class='monospaced'>
      $ cd  /var/www/toaster/poky/
-     $ ./bitbake/lib/toaster/manage.py syncdb --migrate
-     $ ./bitbake/lib/toaster/manage.py loadconf ./meta-yocto/conf/toasterconf.json
-     $ ./bitbake/lib/toaster/manage.py lsupdates
+     $ ./bitbake/lib/toaster/manage.py syncdb
+     $ ./bitbake/lib/toaster/manage.py migrate
+     $ TOASTER_DIR=`pwd` TOASTER_CONF=./meta-yocto/conf/toasterconf.json ./bitbake/lib/toaster/manage.py checksettings
      $ ./bitbake/lib/toaster/manage.py collectstatic
                         </literallayout>
                         </para>
@@ -319,33 +320,20 @@
                         <para>
                             For the above set of commands, after moving to the
                             <filename>poky</filename> directory,
-                            the <filename>syncdb</filename> command with the
-                            <filename>migrate</filename> option makes sure the database
+                            the <filename>syncdb</filename> and <filename>migrate</filename>
+                            commands ensure the database
                             schema has had changes propagated correctly (i.e.
                             migrations).
-                            See the
-                            <ulink url='https://south.readthedocs.org/en/latest/commands.html#syncdb'><filename>syncdb</filename></ulink>
-                            command for more information.
                         </para>
 
                         <para>
-                            The
-                            <link linkend='toaster-command-loadconf'><filename>loadconf</filename></link>
-                            command loads the
-                            <filename>./meta-yocto/conf/toasterconf.json</filename>
-                            JSON file.
-                        </para>
-
-                        <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."
+                            The next line sets the Toaster root directory
+                            <filename>TOASTER_DIR</filename>, and the location of
+                            the Toaster configuration file <filename>TOASTER_CONF</filename>,
+                            relative to the root directory. For more information on the
+                            Toaster configuration file see section
+                            <link linkend='toaster-json-files'>4.3 JSON Files</link>
+                            of this manual.
                         </para>
 
                         <para>
@@ -353,8 +341,6 @@
                             is a Django framework command that collects all the
                             statically served files into a designated directory to
                             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>
                     <listitem><para>
                         Add an Apache configuration file for Toaster to your Apache web
@@ -389,6 +375,7 @@
                         <literallayout class='monospaced'>
      $ sudo a2enmod wsgi
      $ sudo a2enconf toaster
+     $ chmod +x bitbake/lib/toaster/toastermain/wsgi.py
                         </literallayout>
                         Finally, restart Apache to make sure all new configuration
                         is loaded.
Signature · 1 line
2.5.4 (Apple Git-61)
#1 lore raw
Quoted 5 lines · Belen Barros Pena

From: Belen Barros Pena <[email protected]>

The instructions the Toaster manual provides for the production set up are not up-to-date, so update them.

As this is a documentation patch, could you please send it direct to [email protected] and cc Scott Rifenbark?

Thanks.
Elliot

Quoted 141 lines

The changes should be applied to both master and jethro.

---
 .../toaster-manual-setup-and-use.xml               | 43
++++++++--------------
 1 file changed, 15 insertions(+), 28 deletions(-)
documentation/toaster-manual/toaster-manual-setup-and-use.xml +2 -1
index 6a69706..6c557a4 100644
@@ -276,6 +276,7 @@
              'PASSWORD': 'yourpasswordhere',
              'HOST': 'localhost',
              'PORT': '3306',
+         }
      }
                                 </literallayout>
                                 </para></listitem>
@@ -298,7 +299,7 @@
                         server defined earlier:
                         <literallayout class='monospaced'>
      $ mysql -u root -p
-     mysql> CREATE DATABASE toaster;
+     mysql> CREATE DATABASE toaster_data;
      mysql> CREATE USER 'toaster'@'localhost' identified by
 'yourpasswordhere';
      mysql> GRANT all on toaster_data.* to 'toaster'@'localhost';

mysql> quit

documentation/toaster-manual/toaster-manual-setup-and-use.xml +0 -0
@@ -309,9 +310,9 @@
                         default data, and gather the statically-served

files:
<literallayout class='monospaced'>
$ cd /var/www/toaster/poky/

documentation/toaster-manual/toaster-manual-setup-and-use.xml +0 -2
-     $ ./bitbake/lib/toaster/manage.py syncdb --migrate
-     $ ./bitbake/lib/toaster/manage.py loadconf

./meta-yocto/conf/toasterconf.json

documentation/toaster-manual/toaster-manual-setup-and-use.xml +3 -1
-     $ ./bitbake/lib/toaster/manage.py lsupdates
+     $ ./bitbake/lib/toaster/manage.py syncdb
+     $ ./bitbake/lib/toaster/manage.py migrate
+     $ TOASTER_DIR=`pwd` TOASTER_CONF=./meta-yocto/conf/toasterconf.json

./bitbake/lib/toaster/manage.py checksettings

      $ ./bitbake/lib/toaster/manage.py collectstatic
                         </literallayout>
                         </para>
documentation/toaster-manual/toaster-manual-setup-and-use.xml +0 -0
@@ -319,33 +320,20 @@
                         <para>
                             For the above set of commands, after moving

to the
<filename>poky</filename> directory,
- the <filename>syncdb</filename> command with
the
- <filename>migrate</filename> option makes
sure the database
+ the <filename>syncdb</filename> and
<filename>migrate</filename>
+ commands ensure the database
schema has had changes propagated correctly
(i.e.
migrations).

documentation/toaster-manual/toaster-manual-setup-and-use.xml +0 -2
-                            See the
-                            <ulink url='

https://south.readthedocs.org/en/latest/commands.html#syncdb
'><filename>syncdb</filename></ulink>

documentation/toaster-manual/toaster-manual-setup-and-use.xml +0 -3
-                            command for more information.
                         </para>
 
                         <para>
-                            The
-                            <link

linkend='toaster-command-loadconf'><filename>loadconf</filename></link>

documentation/toaster-manual/toaster-manual-setup-and-use.xml +0 -2
-                            command loads the
-

<filename>./meta-yocto/conf/toasterconf.json</filename>

documentation/toaster-manual/toaster-manual-setup-and-use.xml +0 -5
-                            JSON file.
-                        </para>
-
-                        <para>
-                            The <filename>lsupdates</filename> command

fetches

documentation/toaster-manual/toaster-manual-setup-and-use.xml +0 -4
-                            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

documentation/toaster-manual/toaster-manual-setup-and-use.xml +2 -1
-                            fetching this information."
+                            The next line sets the Toaster root directory
+                            <filename>TOASTER_DIR</filename>, and the

location of
+ the Toaster configuration file
<filename>TOASTER_CONF</filename>,
+ relative to the root directory. For more
information on the

documentation/toaster-manual/toaster-manual-setup-and-use.xml +2 -0
+                            Toaster configuration file see section
+                            <link linkend='toaster-json-files'>4.3 JSON

Files</link>

documentation/toaster-manual/toaster-manual-setup-and-use.xml +1 -0
+                            of this manual.
                         </para>
 
                         <para>
@@ -353,8 +341,6 @@
                             is a Django framework command that collects

all the
statically served files into a designated
directory to
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>
<listitem><para>
Add an Apache configuration file for Toaster to
your Apache web

documentation/toaster-manual/toaster-manual-setup-and-use.xml +1 -0
@@ -389,6 +375,7 @@
                         <literallayout class='monospaced'>
      $ sudo a2enmod wsgi
      $ sudo a2enconf toaster
+     $ chmod +x bitbake/lib/toaster/toastermain/wsgi.py
                         </literallayout>
                         Finally, restart Apache to make sure all new

configuration
is loaded.
--
2.5.4 (Apple Git-61)

--
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster

Signature · 3 lines
Elliot Smith
Software Engineer
Intel Open Source Technology Centre
#2 lore raw
Quoted 11 lines · Elliot

On 25 January 2016 at 12:18, Belen Barros Pena
<[email protected]> wrote:

From: Belen Barros Pena <[email protected]>

The instructions the Toaster manual provides for the production set up are not up-to-date, so update them.

Quoted 3 lines

As this is a documentation patch, could you please send it direct to [email protected] <mailto:[email protected]> and cc Scott Rifenbark?

I'll be happy to do that, but since I have no idea what I am talking about, I'd appreciate you guys having a look at the content changes before I send them upstream, and confirming they are ok. Particularly Ed, who has been doing the work on the production set up.

Thanks!

Belén

Quoted 163 lines

Thanks.
Elliot

The changes should be applied to both master and jethro.

---
.../toaster-manual-setup-and-use.xml | 43
++++++++--------------

1 file changed, 15 insertions(+), 28 deletions(-)
(quoted diff) +0 -0

a/documentation/toaster-manual/toaster-manual-setup-and-use.xml b/documentation/toaster-manual/toaster-manual-setup-and-use.xml index 6a69706..6c557a4 100644

documentation/toaster-manual/toaster-manual-setup-and-use.xml +2 -1
@@ -276,6 +276,7 @@
             'PASSWORD': 'yourpasswordhere',
             'HOST': 'localhost',
             'PORT': '3306',
+         }
     }
                                </literallayout>
                                </para></listitem>
@@ -298,7 +299,7 @@
                        server defined earlier:
                        <literallayout class='monospaced'>
     $ mysql -u root -p
-     mysql> CREATE DATABASE toaster;
+     mysql> CREATE DATABASE toaster_data;
     mysql> CREATE USER 'toaster'@'localhost' identified by
 'yourpasswordhere';
     mysql> GRANT all on toaster_data.* to 'toaster'@'localhost';

mysql> quit

documentation/toaster-manual/toaster-manual-setup-and-use.xml +0 -0
@@ -309,9 +310,9 @@
                        default data, and gather the statically-served

files:
<literallayout class='monospaced'>
$ cd /var/www/toaster/poky/

documentation/toaster-manual/toaster-manual-setup-and-use.xml +0 -2
-     $ ./bitbake/lib/toaster/manage.py syncdb --migrate
-     $ ./bitbake/lib/toaster/manage.py loadconf

./meta-yocto/conf/toasterconf.json

documentation/toaster-manual/toaster-manual-setup-and-use.xml +3 -1
-     $ ./bitbake/lib/toaster/manage.py lsupdates
+     $ ./bitbake/lib/toaster/manage.py syncdb
+     $ ./bitbake/lib/toaster/manage.py migrate
+     $ TOASTER_DIR=`pwd` TOASTER_CONF=./meta-yocto/conf/toasterconf.json

./bitbake/lib/toaster/manage.py checksettings

     $ ./bitbake/lib/toaster/manage.py collectstatic
                        </literallayout>
                        </para>
documentation/toaster-manual/toaster-manual-setup-and-use.xml +0 -0
@@ -319,33 +320,20 @@
                        <para>
                            For the above set of commands, after moving

to the
<filename>poky</filename> directory,
- the <filename>syncdb</filename> command with
the
- <filename>migrate</filename> option makes
sure the database
+ the <filename>syncdb</filename> and
<filename>migrate</filename>
+ commands ensure the database
schema has had changes propagated correctly
(i.e.
migrations).

documentation/toaster-manual/toaster-manual-setup-and-use.xml +0 -2
-                            See the
-                            <ulink

url='https://south.readthedocs.org/en/latest/commands.html#syncdb'><filena me>syncdb</filename></ulink>

documentation/toaster-manual/toaster-manual-setup-and-use.xml +0 -3
-                            command for more information.
                        </para>
 
                        <para>
-                            The
-                            <link

linkend='toaster-command-loadconf'><filename>loadconf</filename></link>

documentation/toaster-manual/toaster-manual-setup-and-use.xml +0 -2
-                            command loads the
-                 

<filename>./meta-yocto/conf/toasterconf.json</filename>

documentation/toaster-manual/toaster-manual-setup-and-use.xml +0 -5
-                            JSON file.
-                        </para>
-
-                        <para>
-                            The <filename>lsupdates</filename> command

fetches

documentation/toaster-manual/toaster-manual-setup-and-use.xml +0 -4
-                            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

documentation/toaster-manual/toaster-manual-setup-and-use.xml +2 -1
-                            fetching this information."
+                            The next line sets the Toaster root directory
+                            <filename>TOASTER_DIR</filename>, and the

location of
+ the Toaster configuration file
<filename>TOASTER_CONF</filename>,
+ relative to the root directory. For more
information on the

documentation/toaster-manual/toaster-manual-setup-and-use.xml +2 -0
+                            Toaster configuration file see section
+                            <link linkend='toaster-json-files'>4.3 JSON

Files</link>

documentation/toaster-manual/toaster-manual-setup-and-use.xml +1 -0
+                            of this manual.
                        </para>
 
                        <para>
@@ -353,8 +341,6 @@
                            is a Django framework command that collects

all the
statically served files into a designated
directory to
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/'></uli nk>.
</para></listitem>
<listitem><para>
Add an Apache configuration file for Toaster to
your Apache web

documentation/toaster-manual/toaster-manual-setup-and-use.xml +1 -0
@@ -389,6 +375,7 @@
                        <literallayout class='monospaced'>
     $ sudo a2enmod wsgi
     $ sudo a2enconf toaster
+     $ chmod +x bitbake/lib/toaster/toastermain/wsgi.py
                        </literallayout>
                        Finally, restart Apache to make sure all new

configuration
is loaded.
--
2.5.4 (Apple Git-61)

--
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster

Signature · 3 lines
Elliot Smith
Software Engineer
Intel Open Source Technology Centre