🎉 Init Django project
This commit is contained in:
11
entrypoint.sh
Executable file
11
entrypoint.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
python manage.py migrate
|
||||
|
||||
nginx
|
||||
|
||||
if [ "$DJANGO_STAGE" = "prod" ]; then
|
||||
gunicorn -b 0.0.0.0:8000 --workers=2 --threads=4 --worker-class=gthread lglog.wsgi --access-logfile '-' --error-logfile '-';
|
||||
else
|
||||
python manage.py runserver 0.0.0.0:8000;
|
||||
fi
|
Reference in New Issue
Block a user