From d17500d3f73fdeeef5f11fb3773a65e927be3f02 Mon Sep 17 00:00:00 2001 From: Alexandru DAMIAN Date: Tue, 15 Jul 2014 12:35:43 +0100 Subject: toaster: add fields for sourcedir and builddir paths We add explicit absolute paths for a directory where the layer sources will be checked out (sourcedir) and where the build activities will take place. Adding minimal checking when starting the application in order to make sure that BuildEnvironment (BE) settings are usable. This check is ran by the toaster script at startup. Modify the localhost bbcontroller to use the BE settings instead of trying to self-configure on checked out sources. Signed-off-by: Alexandru DAMIAN --- bin/toaster | 1 + 1 file changed, 1 insertion(+) (limited to 'bin') diff --git a/bin/toaster b/bin/toaster index 90cd98287..1f90362b1 100755 --- a/bin/toaster +++ b/bin/toaster @@ -64,6 +64,7 @@ function webserverStartAll() python $BBBASEDIR/lib/toaster/manage.py migrate orm || retval=1 fi python $BBBASEDIR/lib/toaster/manage.py migrate bldcontrol || retval=1 + python $BBBASEDIR/lib/toaster/manage.py checksettings || retval=1 if [ $retval -eq 0 ]; then python $BBBASEDIR/lib/toaster/manage.py runserver 0.0.0.0:8000 ${BUILDDIR}/toaster_web.log 2>&1 & echo $! >${BUILDDIR}/.toastermain.pid -- cgit 1.2.3-korg