Skip to content

Commit 0104fb1

Browse files
justin808claude
andcommitted
Enable Puma early hints support in all Procfiles
Added --early-hints flag to all Procfile configurations to enable Puma's early hints support. This allows Rails to send HTTP 103 Early Hints responses with preload headers for better performance. Updated files: - Procfile (production) - Procfile.dev - Procfile.dev-prod-assets - Procfile.dev-static - Procfile.dev-static-assets 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 8082229 commit 0104fb1

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

Procfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
web: bundle exec puma -C config/puma.rb
1+
web: bundle exec puma -C config/puma.rb --early-hints

Procfile.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# You can run these commands in separate shells
33
rescript: yarn res:dev
44
redis: redis-server
5-
rails: bundle exec rails s -p 3000
5+
rails: bundle exec rails s -p 3000 --early-hints
66
# Sleep to allow rescript files to compile before starting webpack
77
wp-client: sleep 5 && RAILS_ENV=development NODE_ENV=development bin/shakapacker-dev-server
88
wp-server: sleep 5 && bundle exec rake react_on_rails:locale && HMR=true SERVER_BUNDLE_ONLY=yes bin/shakapacker --watch

Procfile.dev-prod-assets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# You can run these commands in separate shells
2-
web: bin/rails s -p 3001
2+
web: bin/rails s -p 3001 --early-hints
33
redis: redis-server
44

55
# Next line runs a watch process with webpack to compile the changed files.

Procfile.dev-static

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# You can run these commands in separate shells
2-
web: rails s -p 3000
2+
web: rails s -p 3000 --early-hints
33
redis: redis-server
44

55
# Next line runs a watch process with webpack to compile the changed files.

Procfile.dev-static-assets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# You can run these commands in separate shells
2-
web: bin/rails s -p 3000
2+
web: bin/rails s -p 3000 --early-hints
33
redis: redis-server
44

55
# Next line runs a watch process with webpack to compile the changed files.

0 commit comments

Comments
 (0)