+++ /dev/null
-#!/bin/sh
-
-# paths
-root='/opt/'
-sandbox=$root'app/'
-manage=$sandbox'manage.py'
-wsgi=$sandbox'wsgi.py'
-static=$root'static/'
-media=$root'media/'
-
-# waiting for other services
-sh $sandbox/deploy/wait.sh
-
-# django init
-python $manage migrate --noinput
-python $manage collectstatic --noinput
-
-# static files auto update
-watchmedo shell-command --patterns="*.js;*.css" --recursive \
- --command='python '$manage' collectstatic --noinput' $sandbox &
-
-# app start
-uwsgi --socket :8000 --wsgi-file $wsgi --chdir $sandbox --master --processes 4 --threads 2 --py-autoreload 3
-
-#python $manage runserver 0.0.0.0:8000
+++ /dev/null
-[program:gunicorn_%(proj_name)s]
-command=%(venv_path)s/bin/gunicorn -c gunicorn.conf.py -p gunicorn.pid %(proj_app)s.wsgi:application
-directory=%(proj_path)s
-user=%(user)s
-autostart=true
-stdout_logfile = /home/%(user)s/logs/%(proj_name)s_supervisor
-autorestart=true
-redirect_stderr=true
-environment=LANG="%(locale)s",LC_ALL="%(locale)s",LC_LANG="%(locale)s"