React Redux Universal Hot Example

Demo on Heroku

Installation

npm install

Dev Server

npm run dev

Prod Server

npm run dev

Build

npm run build

Test

npm run test

Deployment on Heroku

  1. Add heroku heroku git:remote -a wearepush-redux-starter

To get this project to work on Heroku, you need to:

  1. Remove the "PORT": 8080 line from the betterScripts / start-prod section of package.json.
  2. heroku config:set NODE_ENV=production
  3. heroku config:set NODE_PATH=./src
  4. heroku config:set NPM_CONFIG_PRODUCTION=false
  5. heroku config:set NODE_MODULES_CACHE=false
  • This is to enable webpack to run the build on deploy.