Skip to content

Commit 102745f

Browse files
kevinhughes27justin808
authored andcommitted
update ENV variable for react_on_rails 8 (#401)
Use HOT_RELOADING
1 parent 7686ba4 commit 102745f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Procfile.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ app: echo "Use Procfile.static or uncomment this file and help us get Hot Reload
55

66
# Development rails requires both rails and rails-assets
77
# (and rails-server-assets if server rendering)
8-
# rails: REACT_ON_RAILS_ENV=HOT rails s -b 0.0.0.0
8+
# rails: HOT_RELOADING=TRUE rails s -b 0.0.0.0
99

1010
# Run the hot reload server for client development
1111
# hot-assets: sh -c 'rm -rf public/webpack/development || true && bundle exec rake react_on_rails:locale && HOT_RAILS_PORT=3500 yarn run hot-assets'

Procfile.hot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
# Development rails requires both rails and rails-assets
55
# (and rails-server-assets if server rendering)
6-
rails: REACT_ON_RAILS_ENV=HOT rails s -b 0.0.0.0
6+
rails: HOT_RELOADING=TRUE rails s -b 0.0.0.0
77

88
# Run the hot reload server for client development
99
hot-assets: sh -c 'rm -rf public/webpack/development || true && bundle exec rake react_on_rails:locale && HOT_RAILS_PORT=3500 yarn run hot-assets'

Procfile.static

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Run Rails without hot reloading (static assets).
2-
rails: REACT_ON_RAILS_ENV= rails s -b 0.0.0.0
2+
rails: rails s -b 0.0.0.0
33

44
# Build client assets, watching for changes.
55
rails-client-assets: rm -rf public/webpack/development || true && bundle exec rake react_on_rails:locale && yarn run build:dev:client

0 commit comments

Comments
 (0)