Skip to content

Commit

Permalink
Update heroku deployment and configuration docs
Browse files Browse the repository at this point in the history
  • Loading branch information
gscarv13 committed Nov 4, 2021
1 parent e26dbfb commit cebf906
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
5 changes: 0 additions & 5 deletions docs/deployment/heroku-deployment.md
Expand Up @@ -17,8 +17,3 @@ For more information, see [Using Multiple Buildpacks for an App](https://devcent
### rails/webpacker webpack configuration
If you're using the standard rails/webpacker configuration of webpack, then rails/webpacker
will automatically modify or create an assets:precompile task to build your assets.

### custom webpack configuration
If you're a custom webpack configuration, and you **do not have the default
`config/webpack/production.js`** file, then the `config/initializers/react_on_rails.rb`
configuration `config.build_production_command` will be used.
5 changes: 1 addition & 4 deletions docs/guides/configuration.md
Expand Up @@ -66,11 +66,8 @@ ReactOnRails.configure do |config|
# defaults to "" (top level)
config.node_modules_location = "client" # If using webpacker you should use "".

# This configures the script to run to build the production assets by webpack . Set this to nil
# This configures the script to run to build the production assets by webpack. Set this to nil
# if you don't want react_on_rails building this file for you.
# Note, if you want to use this command then you should remove the file
# config/webpack/production.js
# If that file exists, React on Rails thinks that you'll use the rails/webpacker bin/webpack compiler.
config.build_production_command = "RAILS_ENV=production bin/webpack"

# Alternatively, you can also specify a module containing a class method `call`
Expand Down

0 comments on commit cebf906

Please sign in to comment.