You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How do you push this to heroku?
Do I have to create a prod-sever.js and configure there and then use that in a newly created Procfile? Are there any other set ups i need to do? Here is my current prod-server.js.
const express = require('express');
const path = require('path');
const port = process.env.PORT || 8080;
const app = express();
app.use(express.static('build'));
app.get('*', (req, res) => {
res.sendFile(path.join(__dirname, 'build/client/index.html'));
});
app.listen(port, () => {
console.log("Party started on port "+port);
})
Thanks
The text was updated successfully, but these errors were encountered:
Just started working on this starter.
How do you push this to heroku?
Do I have to create a prod-sever.js and configure there and then use that in a newly created Procfile? Are there any other set ups i need to do? Here is my current prod-server.js.
Thanks
The text was updated successfully, but these errors were encountered: