From 53af84126bb1a7c10a89849625938e84775f344e Mon Sep 17 00:00:00 2001 From: Justin Gordon Date: Sun, 15 Jan 2017 11:32:35 -1000 Subject: [PATCH] Update heroku-deployment.md --- docs/additional-reading/heroku-deployment.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/additional-reading/heroku-deployment.md b/docs/additional-reading/heroku-deployment.md index 58df582be..542b43725 100644 --- a/docs/additional-reading/heroku-deployment.md +++ b/docs/additional-reading/heroku-deployment.md @@ -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.