Skip to content

Commit e5576e0

Browse files
committed
Make sure start script is executable.
1 parent e305213 commit e5576e0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ EXPOSE 80
1515
EXPOSE 8000
1616
RUN service nginx start
1717

18+
RUN chmod +x /app/start.sh
1819
ENTRYPOINT ["/app/start.sh"]

start.sh

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -e
33

44
service nginx start
55

6-
if [ "$ENV" == "dev" ]; then
6+
if [ "$ENV" == "development" ]; then
77
exec bash -c "DATABASE_URL=$DATABASE_URL python app.py"
88
else
99
exec bash -c "DATABASE_URL=$DATABASE_URL gunicorn --bind 0.0.0.0:8000 -w 4 app:app"

0 commit comments

Comments
 (0)