Skip to content

Commit 8dd8f76

Browse files
authored
Merge pull request #11 from nvdk/patch-1
fix start script
2 parents 9e61652 + b555c7c commit 8dd8f76

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

start.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
#! /usr/bin/env sh
2-
set -e
3-
4-
if [ $MODE = "development" ]; then
1+
#! /usr/bin/env bash
2+
set -eu
3+
if [ ${MODE:-""} == "development" ]; then
4+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
55
exec python web.py
66
else
77
exec gunicorn -k egg:meinheld#gunicorn_worker -c "$GUNICORN_CONF" "$APP_MODULE"

0 commit comments

Comments
 (0)