Skip to content

Commit 9d31cb1

Browse files
committed
Updated gunicorn version
1 parent 7c9d1b2 commit 9d31cb1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@ ENV APP_LOG_LEVEL="info"
99
ENV APP_PORT="8000"
1010
ENV APPLICATION_DIR="/srv/application"
1111

12-
RUN source /srv/virtenv/bin/activate && pip install gunicorn==19.4.5
12+
RUN source /srv/virtenv/bin/activate && pip install gunicorn==19.6.0 greenlet eventlet
1313

1414
EXPOSE $APP_PORT
1515
ADD start-gunicorn.sh /home/app/start-gunicorn.sh
16-
#RUN chmod +x /home/app/start-gunicorn.sh
1716

1817
CMD /home/app/start-gunicorn.sh

start-gunicorn.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ fi
1212

1313
gunicorn $APP_MODULE \
1414
--name $APP_PROCESS_NAME \
15-
--bind 0.0.0.0:$APP_PORT \
16-
--workers $APP_WORKERS_COUNT \
17-
--timeout $TIMEOUT \
15+
--bind=0.0.0.0:$APP_PORT \
16+
--workers=$APP_WORKERS_COUNT \
17+
--worker-class=eventlet
18+
--timeout=$TIMEOUT \
1819
--log-level=$APP_LOG_LEVEL \
1920
--log-file="-" \
2021
--chdir=$APPLICATION_DIR

0 commit comments

Comments
 (0)