cookiecutter-django/{{cookiecutter.repo_name}}/compose/django/gunicorn.sh

3 lines
161 B
Bash
Raw Normal View History

2015-07-16 18:43:02 +03:00
#!/bin/sh
su -m django -c "python /app/manage.py collectstatic --noinput"
su -m django -c "/usr/local/bin/gunicorn config.wsgi -w 4 -b 0.0.0.0:5000 --chdir=/app"