From 738d6174873c585b0f63c9fa6b7e46b3afccd86f Mon Sep 17 00:00:00 2001 From: Kevin Hughes Date: Wed, 21 Jun 2017 15:47:06 -0400 Subject: [PATCH] update ENV variable for react_on_rails 8 --- Procfile.dev | 2 +- Procfile.hot | 2 +- Procfile.static | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Procfile.dev b/Procfile.dev index ff230c86..bf8dcebb 100644 --- a/Procfile.dev +++ b/Procfile.dev @@ -5,7 +5,7 @@ app: echo "Use Procfile.static or uncomment this file and help us get Hot Reload # Development rails requires both rails and rails-assets # (and rails-server-assets if server rendering) -# rails: REACT_ON_RAILS_ENV=HOT rails s -b 0.0.0.0 +# rails: HOT_RELOADING=TRUE rails s -b 0.0.0.0 # Run the hot reload server for client development # 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' diff --git a/Procfile.hot b/Procfile.hot index 9d100916..d4a8fabf 100644 --- a/Procfile.hot +++ b/Procfile.hot @@ -3,7 +3,7 @@ # Development rails requires both rails and rails-assets # (and rails-server-assets if server rendering) -rails: REACT_ON_RAILS_ENV=HOT rails s -b 0.0.0.0 +rails: HOT_RELOADING=TRUE rails s -b 0.0.0.0 # Run the hot reload server for client development 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' diff --git a/Procfile.static b/Procfile.static index 03b220bd..2f75941f 100644 --- a/Procfile.static +++ b/Procfile.static @@ -1,5 +1,5 @@ # Run Rails without hot reloading (static assets). -rails: REACT_ON_RAILS_ENV= rails s -b 0.0.0.0 +rails: rails s -b 0.0.0.0 # Build client assets, watching for changes. rails-client-assets: rm -rf public/webpack/development || true && bundle exec rake react_on_rails:locale && yarn run build:dev:client