Skip to content

Commit 3d47407

Browse files
committed
attempt to allow stopping puma without taking a pod down
1 parent ec6255d commit 3d47407

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

bin/web

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,9 @@ if ENV['GOOGLE_OAUTH_PRIVATE_KEY_VALUE'] && !ENV['GOOGLE_OAUTH_PRIVATE_KEY_VALUE
33
%x{echo #{ENV['GOOGLE_OAUTH_PRIVATE_KEY_VALUE']} | base64 --decode > prod-cred.p12}
44
end
55

6-
exec "bundle exec puma -v -b tcp://0.0.0.0:3000"
6+
#exec "bundle exec puma -v -b tcp://0.0.0.0:3000"
7+
RAILS_START=`bundle exec puma -v -b tcp://0.0.0.0`
8+
if [ "$?" -ne "0" ]; then
9+
echo "### There was an issue starting rails/puma. We have kept this container alive for you to go and see what's up ###"
10+
tail -f /dev/null
11+
fi

0 commit comments

Comments
 (0)