mirror of
https://github.com/pinry/pinry.git
synced 2026-01-26 09:09:30 +01:00
feature: use env to config django's settings path
This commit is contained in:
@@ -9,18 +9,19 @@
|
||||
# Updated: Aug 19th, 2014
|
||||
# -----------------------------------------------------------------------------
|
||||
PROJECT_ROOT="/pinry"
|
||||
export DJANGO_SETTINGS_MODULE=pinry.settings.docker
|
||||
|
||||
bash ${PROJECT_ROOT}/docker/scripts/bootstrap.sh
|
||||
|
||||
# If static files don't exist collect them
|
||||
cd ${PROJECT_ROOT}
|
||||
python manage.py collectstatic --noinput --settings=pinry.settings.docker
|
||||
python manage.py collectstatic --noinput
|
||||
|
||||
# If database doesn't exist yet create it
|
||||
if [ ! -f /data/production.db ]
|
||||
then
|
||||
cd ${PROJECT_ROOT}
|
||||
python manage.py migrate --noinput --settings=pinry.settings.docker
|
||||
python manage.py migrate --noinput
|
||||
fi
|
||||
|
||||
# Fix all settings after all commands are run
|
||||
|
||||
Reference in New Issue
Block a user