Skip to content

Commit e3ec553

Browse files
committed
Set WEB_CONCURRENCY to 1 by default and explain usage
This will prevent a bad guess on some cloud hosts that could swamp the machine. Closes rails#52522.
1 parent 95d3839 commit e3ec553

File tree

1 file changed

+7
-2
lines changed
  • railties/lib/rails/generators/rails/app/templates/config

1 file changed

+7
-2
lines changed

railties/lib/rails/generators/rails/app/templates/config/deploy.yml.tt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,13 @@ registry:
2828
env:
2929
secret:
3030
- RAILS_MASTER_KEY
31-
# clear:
32-
# DB_HOST: 192.168.0.2
31+
clear:
32+
# Set this to the number of cores you wish the application to use on each server.
33+
# If not set, app will attempt to use all available cores (but may guess wrong on some cloud hosts!)
34+
WEB_CONCURRENCY: 1
35+
36+
# Match this to the database server to configure Active Record correctly
37+
# DB_HOST: 192.168.0.2
3338

3439
<% unless skip_storage? %>
3540
# Use a persistent storage volume for sqlite database files and local Active Storage files.

0 commit comments

Comments
 (0)