Skip to content

Commit 6a4b00c

Browse files
authored
Merge pull request #10 from sauloperez/switch-to-puma
2 parents 5475ba0 + 7f428bd commit 6a4b00c

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

lib/generators/heroku_installer.rb

+1-5
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def set_seeds_for_review_apps
6565

6666
def add_production_gems
6767
gem_group :production do
68-
gem "passenger"
68+
gem "puma"
6969
gem "fog-aws"
7070
gem "dalli"
7171
gem "sendgrid-ruby"
@@ -76,10 +76,6 @@ def add_production_gems
7676
end
7777
end
7878

79-
def remove_puma
80-
gsub_file("Gemfile", /^gem 'puma'.*$/, "")
81-
end
82-
8379
def bundle_install
8480
Bundler.with_clean_env do
8581
run "bundle install"

lib/generators/templates/procfile.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
web: bundle exec passenger start -p ${PORT:-3000} --max-pool-size ${WEB_CONCURRENCY:-5}
1+
web: bundle exec puma -t 5:5 -p ${PORT:-3000} -e ${RACK_ENV:-development}
22
worker: bundle exec sidekiq -e ${RACK_ENV:-development} -C config/sidekiq.yml
33
release: bundle exec rake db:migrate

0 commit comments

Comments
 (0)