From ac4800cc8b765b270f27ea9a5938f3f2a2e0ced4 Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Wed, 2 Dec 2015 10:02:35 -0800 Subject: [PATCH] toaster: set DATABASE_URL in toaster script Set environment variable DATABASE_URL in bitbake/bit/toaster Variable value is obtained by running 'manage.py get-dburl' Signed-off-by: Ed Bartosh Signed-off-by: brian avery Signed-off-by: Richard Purdie --- bin/toaster | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/toaster b/bin/toaster index fbda8dc9f4c..23973199166 100755 --- a/bin/toaster +++ b/bin/toaster @@ -300,6 +300,7 @@ case $CMD in echo "Bitbake server start failed" else export BBSERVER=0.0.0.0:-1 + export DATABASE_URL=`$BBBASEDIR/lib/toaster/manage.py get-dburl` if [ $NOTOASTERUI -eq 0 ]; then # we start the TOASTERUI only if not inhibited bitbake --observe-only -u toasterui >>${BUILDDIR}/toaster_ui.log 2>&1 & echo $! >${BUILDDIR}/.toasterui.pid fi -- 2.47.2