Please help
Hey everyone !! I know i am asking the same question as others but i had tried all the above mentioned solutions but still getting the same H10 error and application error …plz check my code once…i had wasted a lot of time on this thing,here is my git repo
https://github.com/Aatmic/todolist ,plz help
2020-07-15T13:44:41.450013+00:00 heroku[router]: at=error code=H10 desc=“App crashed” method=GET path="/" host=testourexpressapp.herokuapp.com request_id=ba63bc49-e7e1-47e4-ad4d-5cff78d00d92 fwd=“42.106.17.131” dyno= connect= service= status=503 bytes= protocol=https
app is crashed but why
app.js
var express = require(‘express’);
var app = express();
app.get(’/’,function(res,req){
req.send(‘Hello world’)
})
app.get(’/new’,function(res,req){
req.send('New data page is hear')
})
var port =process.env.port || 5000;
app.listen(port);
console.log(‘Port created at :’,port);
//module.exports = app;
Pectfile
worker: node app.js
heroku ps:scale web=0
heroku ps:scale worker=1
Please open a new topic for your own question.