Skip to content

Instantly share code, notes, and snippets.

@benbonnet
Created April 17, 2016 18:10
Show Gist options
  • Save benbonnet/e85590d636338c6e4d10f9f040c353ed to your computer and use it in GitHub Desktop.
Save benbonnet/e85590d636338c6e4d10f9f040c353ed to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# Prefix `bundle` with `exec` so unicorn shuts down gracefully on SIGTERM (i.e. `docker stop`)
exec bundle exec unicorn -c config/containers/unicorn.rb -E $RAILS_ENV;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment