Created
December 27, 2020 16:33
-
-
Save donrestarone/77e269aaaef6f3e29d2698486b4e25d6 to your computer and use it in GitHub Desktop.
docker-entrypoint for rails in development mode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
echo "Environment: $RAILS_ENV" | |
# install missing gems | |
bundle check || bundle install --jobs 20 --retry 5 | |
# Remove pre-existing puma/passenger server.pid | |
rm -f $APP_PATH/tmp/pids/server.pid | |
# run passed commands | |
bundle exec ${@} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment