File tree Expand file tree Collapse file tree 2 files changed +15
-8
lines changed Expand file tree Collapse file tree 2 files changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -18,12 +18,7 @@ RUN source /srv/virtenv/bin/activate && pip install gunicorn==19.4.5
18
18
19
19
EXPOSE $APP_PORT
20
20
VOLUME ["$LOG_DIR" ]
21
+ ADD start-gunicorn.sh /home/app/start-gunicorn.sh
22
+ # RUN chmod +x /home/app/start-gunicorn.sh
21
23
22
- CMD gunicorn $APP_MODULE \
23
- --name $APP_PROCESS_NAME \
24
- --bind 0.0.0.0:$APP_PORT \
25
- --workers $APP_WORKERS_COUNT \
26
- --log-level=$APP_LOG_LEVEL \
27
- --log-file="$LOG_DIR/gunicorn.log" \
28
- --access-logfile="$LOG_DIR/access.log" \
29
- --chdir=$APPLICATION_DIR
24
+ CMD /home/app/start-gunicorn.sh
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ source /srv/virtenv/bin/activate
4
+
5
+ gunicorn $APP_MODULE \
6
+ --name $APP_PROCESS_NAME \
7
+ --bind 0.0.0.0:$APP_PORT \
8
+ --workers $APP_WORKERS_COUNT \
9
+ --log-level=$APP_LOG_LEVEL \
10
+ --log-file=" $LOG_DIR /gunicorn.log" \
11
+ --access-logfile=" $LOG_DIR /access.log" \
12
+ --chdir=$APPLICATION_DIR
You can’t perform that action at this time.
0 commit comments