Skip to content

Instantly share code, notes, and snippets.

@chrisedington
Created October 27, 2016 09:03
Show Gist options
  • Save chrisedington/efb9c87c181a2b59d8d1ff6bc0d7f38f to your computer and use it in GitHub Desktop.
Save chrisedington/efb9c87c181a2b59d8d1ff6bc0d7f38f 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