Skip to content

Commit

Permalink
Switch app server from Passenger to Puma
Browse files Browse the repository at this point in the history
It can deliver better performance and it's Heroku's Rails 5.x default server. See
https://devcenter.heroku.com/articles/getting-started-with-rails5#configure-your-webserver.
  • Loading branch information
sauloperez committed Sep 9, 2020
1 parent 2684552 commit 7f428bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions lib/generators/heroku_installer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def set_seeds_for_review_apps

def add_production_gems
gem_group :production do
gem "passenger"
gem "puma"
gem "fog-aws"
gem "dalli"
gem "sendgrid-ruby"
Expand All @@ -76,10 +76,6 @@ def add_production_gems
end
end

def remove_puma
gsub_file("Gemfile", /^gem 'puma'.*$/, "")
end

def bundle_install
Bundler.with_clean_env do
run "bundle install"
Expand Down
2 changes: 1 addition & 1 deletion lib/generators/templates/procfile.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
web: bundle exec passenger start -p ${PORT:-3000} --max-pool-size ${WEB_CONCURRENCY:-5}
web: bundle exec puma -t 5:5 -p ${PORT:-3000} -e ${RACK_ENV:-development}
worker: bundle exec sidekiq -e ${RACK_ENV:-development} -C config/sidekiq.yml
release: bundle exec rake db:migrate

0 comments on commit 7f428bd

Please sign in to comment.