Skip to content

Commit bb0afbf

Browse files
authored
update start script
previously the if statement was not working, fixed by switching to bash as script processor. Also added switches to set up bash strict mode, so it fails on unset variables and exits on any failures
1 parent 9e61652 commit bb0afbf

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

start.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
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
54
exec python web.py
65
else
76
exec gunicorn -k egg:meinheld#gunicorn_worker -c "$GUNICORN_CONF" "$APP_MODULE"

0 commit comments

Comments
 (0)