Я пытаюсь развернуть приложение узла на Heroku. Но для получения этого журнала -
2020-05-09T14:26:28.375276+00:00 heroku[web.1]: State changed from starting to crashed
2020-05-09T14:30:15.088420+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=cinemy.herokuapp.com request_id=b1a91a29-7d0b-4cd3-8c02-78c2f0d925ff fwd="157.43.248.45" dyno= connect= service= status=503 bytes= protocol=https
2020-05-09T14:30:15.628800+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=cinemy.herokuapp.com request_id=ef9a6681-4995-4753-a222-e6094472e432 fwd="157.43.223.88" dyno= connect= service= status=503 bytes= protocol=https
2020-05-09T14:31:27.703293+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=cinemy.herokuapp.com request_id=25472205-df06-4713-8596-176c1b8a7993 fwd="157.43.223.88" dyno= connect= service= status=503 bytes= protocol=https
2020-05-09T14:31:28.140207+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=cinemy.herokuapp.com request_id=3b9dce3a-0be0-4dfc-b2ee-72157288109d fwd="157.43.248.45" dyno= connect= service= status=503 bytes= protocol=https
См. Полный журнал здесь
Я хорошо определил весь путь. Я использовал app.get (/) для целевой страницы, но все равно получаю сообщение об ошибке. Также я не использую fevicon.ico.
Это мой сервер. js file-
var express = require('express');
var bodyParser = require('body-parser');
var url = require('url');
var app = express();
var {latest, topRated, search, watchList, details} = require('./routes/index');
app.set("view engine","ejs");
app.use(express.static(__dirname+"/assets"));
app.use(bodyParser.urlencoded({extended: false}));
app.use(bodyParser.json());
app.get('/', latest);
app.get('/topRated', topRated);
app.get('/search', search);
app.get('/watchList', watchList);
app.get('/details', details);
app.listen(5050);
Это пакет. json file-
{
"name": "cinemy",
"version": "1.0.0",
"description": "",
"main": "server.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node server.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/arghac14/Cinemy.git"
},
"author": "arghac14",
"license": "ISC",
"bugs": {
"url": "https://github.com/arghac14/Cinemy/issues"
},
"homepage": "https://github.com/arghac14/Cinemy#readme",
"dependencies": {
"body-parser": "^1.19.0",
"express": "^4.17.1",
"ejs": "^2.6.1",
"mysql": "^2.16.0",
"nodemon": "^1.18.9"
}
}
Я не могу развернуть app в heroku, помогите мне узнать, что можно сделать, чтобы решить эту проблему.