Reafactor: Docker auto-build should be a out-of-the-box image without any extra config

This commit is contained in:
winkidney
2019-12-19 16:10:14 +08:00
parent 2a2f65c437
commit 77fca13edf
7 changed files with 59 additions and 96 deletions

View File

@@ -9,13 +9,11 @@
# Updated: Aug 19th, 2014
# -----------------------------------------------------------------------------
bash /scripts/bootstrap.sh
# If static files don't exist collect them
if [ ! -d /data/static ]
then
cd /srv/www/pinry
python manage.py collectstatic --noinput
fi
cd /srv/www/pinry
python manage.py collectstatic --noinput
# If database doesn't exist yet create it
if [ ! -f /data/production.db ]