Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@donrestarone
Created December 27, 2020 16:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save donrestarone/77e269aaaef6f3e29d2698486b4e25d6 to your computer and use it in GitHub Desktop.
Save donrestarone/77e269aaaef6f3e29d2698486b4e25d6 to your computer and use it in GitHub Desktop.
docker-entrypoint for rails in development mode
#!/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