Skip to content

Instantly share code, notes, and snippets.

@ssaunier
Last active June 22, 2016 21:42
Show Gist options
  • Save ssaunier/24bc1c4db955c19e3289 to your computer and use it in GitHub Desktop.
Save ssaunier/24bc1c4db955c19e3289 to your computer and use it in GitHub Desktop.
Prepare Rails app for Heroku with Puma
echo "web: bundle exec puma -C config/puma.rb" > Procfile
curl -L https://gist.githubusercontent.com/ssaunier/24bc1c4db955c19e3289/raw/puma.rb > config/puma.rb
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" }
@ssaunier
Copy link
Author

ssaunier commented Feb 9, 2015

In your rails root folder, run

curl -L https://gist.github.com/ssaunier/24bc1c4db955c19e3289/raw/install.sh | bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment