Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We have been using puma for all other apps on heroku and also this is default in new apps created by suspenders.
- Loading branch information
1 parent
7d858d2
commit 51312cf
Showing
5 changed files
with
32 additions
and
40 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb | ||
web: bundle exec puma -p $PORT -C ./config/puma.rb | ||
worker: bundle exec rake jobs:work |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# https://devcenter.heroku.com/articles/deploying-rails-applications-with-the-puma-web-server | ||
|
||
# The environment variable WEB_CONCURRENCY may be set to a default value based | ||
# on dyno size. To manually configure this value use heroku config:set | ||
# WEB_CONCURRENCY. | ||
# | ||
# Increasing the number of workers will increase the amount of resting memory | ||
# your dynos use. Increasing the number of threads will increase the amount of | ||
# potential bloat added to your dynos when they are responding to heavy | ||
# requests. | ||
# | ||
# Starting with a low number of workers and threads provides adequate | ||
# performance for most applications, even under load, while maintaining a low | ||
# risk of overusing memory. | ||
workers Integer(ENV.fetch("WEB_CONCURRENCY", 2)) | ||
threads_count = Integer(ENV.fetch("MAX_THREADS", 2)) | ||
threads(threads_count, threads_count) | ||
|
||
preload_app! | ||
|
||
rackup DefaultRackup | ||
environment ENV.fetch("RACK_ENV", "development") | ||
|
||
on_worker_boot do | ||
# Worker specific setup for Rails 4.1+ | ||
# See: https://devcenter.heroku.com/articles/deploying-rails-applications-with-the-puma-web-server#on-worker-boot | ||
ActiveRecord::Base.establish_connection | ||
end |
This file was deleted.
Oops, something went wrong.