Hello,
I am using this package as a base for my project. It works absolutely fine locally but whenever I try to deploy to heroku I get the following error:
State changed from starting to crashed
2017-01-24T14:04:38.657424+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=fgvm.herokuapp.com request_id=1c050f56-a289-473f-ae47-7f909a18eada fwd="94.119.64.18" dyno= connect= service= status=503 bytes=
2017-01-24T14:04:39.499995+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=fgvm.herokuapp.com request_id=94983d91-ffed-4544-bfe6-4a20fd099140 fwd="94.119.64.1" dyno= connect= service= status=503 bytes=
I have been searching everywhere for issues on this matter, have copied all the webpack and loader dependencies to production and added express and a server.prod.js file with the following code:
var express = require('express');
var app = express();
app.set('port', (process.env.PORT || 5000));
app.use(express.static(__dirname + '/public'));
// views is directory for all template files
app.get('/', function(request, response) {
response.sendFile(__dirname + '/index.html');
});
app.listen(app.get('port'), function() {
console.log('Node app is running on port', app.get('port'));
});
Where can I find instructions to push this app to a live server?
Hello,
I am using this package as a base for my project. It works absolutely fine locally but whenever I try to deploy to heroku I get the following error:
I have been searching everywhere for issues on this matter, have copied all the webpack and loader dependencies to production and added express and a server.prod.js file with the following code:
Where can I find instructions to push this app to a live server?