dvdzkwsk / react-redux-starter-kit

Get started with React, Redux, and React-Router.
MIT License
10.28k stars 2.2k forks source link

Heroku production deployment #1340

Open eman1000 opened 6 years ago

eman1000 commented 6 years ago

I deployed the app to heroku saving dist folder but am just getting a blank screen with this error in the console

Profile web: node bin/server

bin/server const express = require('express') const path = require('path') const PORT = process.env.PORT || 5000

express()
  .get('*', function(req, res) {  
    res.sendFile(path.join(__dirname, '../dist/index.html'));
  })
  .listen(PORT, () => console.log(`Listening on ${ PORT }`))