Skip to content
This repository has been archived by the owner on Sep 11, 2018. It is now read-only.

Heroku production deployment #1340

Open
eman1000 opened this issue Jan 11, 2018 · 0 comments
Open

Heroku production deployment #1340

eman1000 opened this issue Jan 11, 2018 · 0 comments

Comments

@eman1000
Copy link

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 }`))
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant