Skip to content

Commit

Permalink
attempt to allow stopping puma without taking a pod down
Browse files Browse the repository at this point in the history
  • Loading branch information
cziaarm committed Jul 10, 2024
1 parent ec6255d commit 3d47407
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bin/web
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,9 @@ if ENV['GOOGLE_OAUTH_PRIVATE_KEY_VALUE'] && !ENV['GOOGLE_OAUTH_PRIVATE_KEY_VALUE
%x{echo #{ENV['GOOGLE_OAUTH_PRIVATE_KEY_VALUE']} | base64 --decode > prod-cred.p12}
end

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

0 comments on commit 3d47407

Please sign in to comment.