Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 7B8A6E00AAB; Mon, 25 Jan 2016 06:50:35 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [192.55.52.93 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 2DB68E008F5 for ; Mon, 25 Jan 2016 06:50:31 -0800 (PST) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP; 25 Jan 2016 06:50:31 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,344,1449561600"; d="scan'208";a="35800173" Received: from irsmsx151.ger.corp.intel.com ([163.33.192.59]) by fmsmga004.fm.intel.com with ESMTP; 25 Jan 2016 06:50:31 -0800 Received: from irsmsx110.ger.corp.intel.com ([169.254.15.31]) by IRSMSX151.ger.corp.intel.com ([169.254.4.108]) with mapi id 14.03.0248.002; Mon, 25 Jan 2016 14:50:29 +0000 From: "Barros Pena, Belen" To: "Smith, Elliot" , "Bartosh, Eduard" Thread-Topic: [Toaster] [review-request] [PATCH] toaster: update documentation about production set up Thread-Index: AQHRV38j3yXXAZ+Wnk+e4S2KykR7Bp8MYTgA Date: Mon, 25 Jan 2016 14:50:27 +0000 Message-ID: References: <1453724318-86390-1-git-send-email-belen.barros.pena@linux.intel.com> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.6.0.151221 x-originating-ip: [10.252.21.147] MIME-Version: 1.0 Cc: "toaster@yoctoproject.org" Subject: Re: [review-request] [PATCH] toaster: update documentation about production set up X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jan 2016 14:50:35 -0000 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-ID: <9A5CB8442C661A4D93916CB3C47CA9C7@intel.com> Content-Transfer-Encoding: quoted-printable On 25/01/2016 15:45, "toaster-bounces@yoctoproject.org on behalf of Smith, Elliot" wrote: >On 25 January 2016 at 12:18, Belen Barros Pena > wrote: > >From: Belen Barros Pena > >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 >yocto@yoctoproject.org 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=E9n > > >Thanks. >Elliot >=20 > > >The changes should be applied to both master and jethro. > >Signed-off-by: Belen Barros Pena >--- > .../toaster-manual-setup-and-use.xml | 43 >++++++++-------------- > 1 file changed, 15 insertions(+), 28 deletions(-) > >diff --git=20 >a/documentation/toaster-manual/toaster-manual-setup-and-use.xml >b/documentation/toaster-manual/toaster-manual-setup-and-use.xml >index 6a69706..6c557a4 100644 >--- a/documentation/toaster-manual/toaster-manual-setup-and-use.xml >+++ b/documentation/toaster-manual/toaster-manual-setup-and-use.xml >@@ -276,6 +276,7 @@ > 'PASSWORD': 'yourpasswordhere', > 'HOST': 'localhost', > 'PORT': '3306', >+ } > } > > >@@ -298,7 +299,7 @@ > server defined earlier: > > $ 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: > > $ 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=3D`pwd` TOASTER_CONF=3D./meta-yocto/conf/toasterconf.j= son >./bitbake/lib/toaster/manage.py checksettings > $ ./bitbake/lib/toaster/manage.py collectstatic > > >@@ -319,33 +320,20 @@ > > For the above set of commands, after moving >to the > poky directory, >- the syncdb command with >the >- migrate option makes >sure the database >+ the syncdb and >migrate >+ commands ensure the database > schema has had changes propagated correctly >(i.e. > migrations). >- See the >- url=3D'https://south.readthedocs.org/en/latest/commands.html#syncdb'>me>syncdb >- command for more information. > > > >- The >- linkend=3D'toaster-command-loadconf'>loadconf >- command loads the >- =20 >./meta-yocto/conf/toasterconf.json >- JSON file. >- >- >- >- The lsupdates command >fetches >- information about machines, recipes and >- layers available as part of OpenEmbedded. >- The information is fetched from the >- url=3D'http://layers.openembedded.org/'>OpenEmbedded Metadata Index. >- 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 >+ TOASTER_DIR, and the >location of >+ the Toaster configuration file >TOASTER_CONF, >+ relative to the root directory. For more >information on the >+ Toaster configuration file see section >+ 4.3 JSON >Files >+ of this manual. > > > >@@ -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 >- url=3D'https://docs.djangoproject.com/en/1.7/ref/contrib/staticfiles/'>nk>. > > > Add an Apache configuration file for Toaster to >your Apache web >@@ -389,6 +375,7 @@ > > $ sudo a2enmod wsgi > $ sudo a2enconf toaster >+ $ chmod +x bitbake/lib/toaster/toastermain/wsgi.py > > Finally, restart Apache to make sure all new >configuration > is loaded. >-- >2.5.4 (Apple Git-61) > >-- >_______________________________________________ >toaster mailing list >toaster@yoctoproject.org >https://lists.yoctoproject.org/listinfo/toaster > > > > > > > >--=20 >Elliot Smith >Software Engineer >Intel Open Source Technology Centre > > > >