Last active
December 9, 2015 17:58
-
-
Save simonc/4306730 to your computer and use it in GitHub Desktop.
Unicorn on heroku
This file contains hidden or 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
| group :production do | |
| gem 'unicorn' | |
| end |
This file contains hidden or 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
| web: bundle exec unicorn_rails -p $PORT -c ./config/unicorn.rb |
This file contains hidden or 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
| # If you have a very small app you may be able to | |
| # increase this, but in general 3 workers seems to | |
| # work best | |
| worker_processes 3 | |
| # Load your app into the master before forking | |
| # workers for super-fast worker spawn times | |
| preload_app true | |
| # Immediately restart any workers that | |
| # haven't responded within 30 seconds | |
| timeout 30 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment