python $manage bower_install -- --allow-root
python $manage collectstatic --noinput
-if [ $DEBUG = "False" ]
-then
+if [ ! -f .init ]; then
+ chown -R www-data:www-data $media
+ python $manage telemeta-create-admin-user
+ python $manage telemeta-create-boilerplate
+ touch .init
+fi
+
+if [ $DEBUG = "False" ]; then
python $manage update_index --workers $processes &
- if [ ! -f .init ]
- then
- chown -R www-data:www-data $media
- python $manage telemeta-create-admin-user
- python $manage telemeta-create-boilerplate
- touch .init
- fi
fi
-if [ $1 = "--runserver" ]
-then
+
+if [ $1 = "--runserver" ]; then
python $manage runserver_plus 0.0.0.0:8000
else
# static files auto update
# pip install django-environ redis
# waiting for other services
-sh $app/scripts/wait.sh
+bash $app/scripts/wait.sh
# Starting celery worker with the --autoreload option will enable the worker to watch for file system changes
# This is an experimental feature intended for use in development only
app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)
# app.conf.update(
# CELERY_RESULT_BACKEND='djcelery.backends.database:DatabaseBackend',
-# )
+# )
@app.task(bind=True)
def debug_task(self):
- data
env_file:
- env/prod.env
- command: /bin/sh scripts/app.sh
+ command: /bin/bash scripts/app.sh
links:
- broker
- db
- app
env_file:
- env/prod.env
- command: /bin/sh scripts/worker.sh
+ command: /bin/bash scripts/worker.sh
links:
- broker
- db
app:
env_file:
- env/debug.env
- command: /bin/sh scripts/app.sh --runserver
+ command: /bin/bash scripts/app.sh --runserver
ports:
- 9000:8000
-Subproject commit 407d2d269d081176f8f7548d9e2371076eebc879
+Subproject commit affaaa01250e706004149c1cfeb5149b1b945507