Update bin/gunicorn_start.sh
Browse files- bin/gunicorn_start.sh +1 -2
bin/gunicorn_start.sh
CHANGED
|
@@ -6,7 +6,6 @@ SOCKFILE=/app/run/gunicorn.sock # we will communicte using this unix socket
|
|
| 6 |
NUM_WORKERS=3 # how many worker processes should Gunicorn spawn
|
| 7 |
DJANGO_SETTINGS_MODULE=project_settings.settings # which settings file should Django use
|
| 8 |
DJANGO_WSGI_MODULE=project_settings.wsgi # WSGI module name
|
| 9 |
-
PORT=7860 # Specify the port number
|
| 10 |
|
| 11 |
echo "Starting $NAME as `whoami`"
|
| 12 |
|
|
@@ -15,4 +14,4 @@ RUNDIR=$(dirname $SOCKFILE)
|
|
| 15 |
test -d $RUNDIR || mkdir -p $RUNDIR
|
| 16 |
|
| 17 |
# Start your Django Gunicorn
|
| 18 |
-
gunicorn project_settings.wsgi:application --bind=
|
|
|
|
| 6 |
NUM_WORKERS=3 # how many worker processes should Gunicorn spawn
|
| 7 |
DJANGO_SETTINGS_MODULE=project_settings.settings # which settings file should Django use
|
| 8 |
DJANGO_WSGI_MODULE=project_settings.wsgi # WSGI module name
|
|
|
|
| 9 |
|
| 10 |
echo "Starting $NAME as `whoami`"
|
| 11 |
|
|
|
|
| 14 |
test -d $RUNDIR || mkdir -p $RUNDIR
|
| 15 |
|
| 16 |
# Start your Django Gunicorn
|
| 17 |
+
gunicorn project_settings.wsgi:application --bind=unix:$SOCKFILE --workers $NUM_WORKERS --timeout 600
|