You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/additional-reading/heroku-deployment.md
+3
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,9 @@ The generator has created the necessary files and gems for deployment to Heroku.
5
5
+`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)
6
6
+`'puma'` gem: recommended Heroku webserver
7
7
+`config/puma.rb`: Puma webserver config file
8
+
+`/package.json`: Top level package.json which must contain `"scripts": { "postinstall": "cd client && npm install" }`
9
+
10
+
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).
8
11
9
12
## More details on precompilation using webpack to create JavaScript assets
10
13
This is how the rake task gets modified. You should be able to call `clear_prerequisites` and setup your own custom precompile if needed.
0 commit comments