Skip to content

Commit

Permalink
Update heroku-deployment.md
Browse files Browse the repository at this point in the history
  • Loading branch information
justin808 committed Jan 15, 2017
1 parent 737e6fc commit 53af841
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/additional-reading/heroku-deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ The generator has created the necessary files and gems for deployment to Heroku.
+ `12factor` gem: required by Heroku if using a version before Rails 5 (see their [README](https://github.com/heroku/rails_12factor#rails-5) for more information if upgrading from a lower version)
+ `'puma'` gem: recommended Heroku webserver
+ `config/puma.rb`: Puma webserver config file
+ `/package.json`: Top level package.json which must contain `"scripts": { "postinstall": "cd client && npm install" }`

If you want to see an updated example deployed to Heroku, please visit the [github.com/shakacode/react-webpack-rails-tutorial](https://github.com/shakacode/react-webpack-rails-tutorial).

## More details on precompilation using webpack to create JavaScript assets
This is how the rake task gets modified. You should be able to call `clear_prerequisites` and setup your own custom precompile if needed.
Expand Down

0 comments on commit 53af841

Please sign in to comment.