Deploy react redux starter kit on Heroku
The reason it doesn't work on heroku is because there isn't any production server ready in this project for your deployment as specified here : https://github.com/davezuko/react-redux-starter-kit#deployment
When you run the npm run deploy
command, all the front-end code is compiled in the /dist
folder.
In order to deploy it on heroku you need to :
Create a very simple http server always serving the file index.html. Here is the main part using Express or Koa
app.get('/', function(req, res) {res.sendFile(path.join(__dirname + '/dist/index.html'));});
Modifying the
npm start
script in order to target this new production ready server.