Skip to content

Commit

Permalink
Update generated README with new Rails 7.2+ puma defaults (#102)
Browse files Browse the repository at this point in the history
The puma config included with the latest versions of Rails now default
to 3 threads.
  • Loading branch information
mattbrictson authored Sep 7, 2024
1 parent 661ccf1 commit 199a693
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion template/DEPLOYMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ These environment variables affect how the app functions when deployed in produc

- `RAILS_DISABLE_SSL` - Disable HSTS and secure cookies
- `RAILS_ENV` **REQUIRED** - "production"
- `RAILS_MAX_THREADS` - Number of threads per Puma process (default: 5)
- `RAILS_MAX_THREADS` - Number of threads per Puma process (default: 3)
- `SECRET_KEY_BASE` **REQUIRED** - Unique, secret key used to encrypt and sign cookies and other sensitive data
- `WEB_CONCURRENCY` - Number of Puma processes (default: number of CPUs)
2 changes: 1 addition & 1 deletion test/integration/generators/staging_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Nextgen::Generators::StagingTest < Nextgen::Generators::TestCase
File.write(File.join(destination_root, "DEPLOYMENT.md"), <<~DEPLOYMENT_MD)
- `RAILS_DISABLE_SSL` - Disable HSTS and secure cookies
- `RAILS_ENV` **REQUIRED** - "production"
- `RAILS_MAX_THREADS` - Number of threads per Puma process (default: 5)
- `RAILS_MAX_THREADS` - Number of threads per Puma process (default: 3)
DEPLOYMENT_MD

apply_generator
Expand Down

0 comments on commit 199a693

Please sign in to comment.