Skip to content

Commit 91f867f

Browse files
author
Vidas P
committed
Fix: init db when starting web only
1 parent 0d0b0b0 commit 91f867f

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

docker/scripts/init

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
set -e
33

44
cd /app
5-
if [ -z "${SINGLE_DYNO}" ]; then
6-
exec bundle exec puma
7-
fi
85

96
# Cleanup any leftover pid file
107
if [ -f /app/tmp/pids/server.pid ]; then
@@ -43,4 +40,9 @@ if [ -z "${DO_NOT_SEED}" ]; then
4340
fi
4441

4542
# Start ActiveWorkflow
46-
exec bundle exec foreman start
43+
if [ -z "${SINGLE_DYNO}" ]; then
44+
# Web only
45+
exec bundle exec puma
46+
else
47+
exec bundle exec foreman start
48+
fi

0 commit comments

Comments
 (0)