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

Heroku production deployment #1340

@eman1000

Description

@eman1000

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 }`))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions