navpan2 commited on
Commit
2886641
·
verified ·
1 Parent(s): e91b5d6

Update bin/gunicorn_start.sh

Browse files
Files changed (1) hide show
  1. bin/gunicorn_start.sh +2 -1
bin/gunicorn_start.sh CHANGED
@@ -6,6 +6,7 @@ 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
 
10
  echo "Starting $NAME as `whoami`"
11
 
@@ -14,4 +15,4 @@ RUNDIR=$(dirname $SOCKFILE)
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
 
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
  test -d $RUNDIR || mkdir -p $RUNDIR
16
 
17
  # Start your Django Gunicorn
18
+ gunicorn project_settings.wsgi:application --bind=0.0.0.0:$PORT --workers $NUM_WORKERS --timeout 600