| Summary: | In the production set up, the build environment object is not created | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] Toaster | Reporter: | Belen Barros Pena <belen.barros.pena> |
| Component: | toaster | Assignee: | Ed Bartosh <eduard.bartosh> |
| Status: | RESOLVED FIXED | QA Contact: | Mihail Stanciu <stanciux.mihail> |
| Severity: | normal | ||
| Priority: | Undecided | CC: | belen.barros.pena, jessica.zhang, stanciux.mihail |
| Version: | 2.0 | ||
| Target Milestone: | 2.1 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Yes (doc changes required) | |
|
Description
Belen Barros Pena
2016-01-22 12:45:57 UTC
Fortunately it seems to be documentation issue.
This is an incorrect piece of doc:
Get Toaster to create the database schema, 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 collectstatic
The set of commands is now different. Here is what should be done instead:
$ cd /var/www/toaster/poky/
$ ./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
just figured out that ./bitbake/lib/toaster/manage.py collectstatic is still needed for production setup.
so, the right set of commands is:
$ cd /var/www/toaster/poky/
$ ./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
Below description should also be adjusted according to new set of commands:
For the above set of commands, after moving to the poky directory, the syncdb command with the migrate option makes sure the database schema has had changes propagated correctly (i.e. migrations). See the syncdb command for more information.
The loadconf command loads the ./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 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."
Documentation changes submitted for review https://lists.yoctoproject.org/pipermail/toaster/2016-January/003735.html |