Update Puma installation on Heroku

CONSUL now uses Puma on production as well.
This commit is contained in:
Javi Martín
2021-11-30 17:56:58 +01:00
parent 9820a2ce07
commit 69f9738902
2 changed files with 4 additions and 14 deletions

View File

@@ -131,15 +131,10 @@ to generate _Gemfile.lock_ before commiting and pushing to the server.
### Use Puma as a web server ### Use Puma as a web server
Heroku recommends to use Puma instead of the default web server to improve the responsiveness of your app on [a number of levels](http://blog.scoutapp.com/articles/2017/02/10/which-ruby-app-server-is-right-for-you). Heroku recommends to use Puma to improve the responsiveness of your app on [a number of levels](http://blog.scoutapp.com/articles/2017/02/10/which-ruby-app-server-is-right-for-you).
Since v1.0.0, CONSUL uses puma for the development and test environments. To use it in production as well, move the gem outside of the group `group :development, :test` in your _Gemfile_:
```ruby
gem 'puma'
```
If you want to allow more concurrency, uncomment the line: If you want to allow more concurrency, uncomment the line:
```ruby ```ruby
workers ENV.fetch("WEB_CONCURRENCY") { 2 } workers ENV.fetch("WEB_CONCURRENCY") { 2 }
``` ```

View File

@@ -131,15 +131,10 @@ to generate _Gemfile.lock_ before commiting and pushing to the server.
### Use Puma as a web server ### Use Puma as a web server
Heroku recommends to use Puma instead of the default web server to improve the responsiveness of your app on [a number of levels](http://blog.scoutapp.com/articles/2017/02/10/which-ruby-app-server-is-right-for-you). Heroku recommends to use Puma to improve the responsiveness of your app on [a number of levels](http://blog.scoutapp.com/articles/2017/02/10/which-ruby-app-server-is-right-for-you).
Since v1.0.0, CONSUL uses puma for the development and test environments. To use it in production as well, move the gem outside of the group `group :development, :test` in your _Gemfile_:
```ruby
gem 'puma'
```
If you want to allow more concurrency, uncomment the line: If you want to allow more concurrency, uncomment the line:
```ruby ```ruby
workers ENV.fetch("WEB_CONCURRENCY") { 2 } workers ENV.fetch("WEB_CONCURRENCY") { 2 }
``` ```