Last active
June 22, 2016 21:42
-
-
Save ssaunier/24bc1c4db955c19e3289 to your computer and use it in GitHub Desktop.
Prepare Rails app for Heroku with Puma
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
echo "web: bundle exec puma -C config/puma.rb" > Procfile | |
curl -L https://gist.githubusercontent.com/ssaunier/24bc1c4db955c19e3289/raw/puma.rb > config/puma.rb |
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
threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }.to_i | |
threads threads_count, threads_count | |
port ENV.fetch("PORT") { 3000 } | |
environment ENV.fetch("RAILS_ENV") { "development" } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In your rails root folder, run
curl -L https://gist.github.com/ssaunier/24bc1c4db955c19e3289/raw/install.sh | bash