尽管应用程序错误,但在 heroku 上部署似乎成功

时间:2021-06-07 16:52:10

标签: asp.net angular heroku heroku-postgres

我正在尝试使用 git 将我的 ASP NET Core-Angular-PostgreSQL 应用程序部署到 heroku。一切似乎都很好,构建在 heroku 概览选项卡中显示成功并且部署已完成。但是,在访问该应用程序时,我收到了 Application error。这是日志:

Process exited with status 134                                          
2021-06-07T16:40:04.331006+00:00 heroku[web.1]: State changed from starting to crashed
2021-06-07T16:40:06.784910+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=bucuriesicredinta.herokuapp.com request_id=2990e165-be37-4b98-bf86-0bc132f7122f fwd="109.103.246.72" dyno= connect= service= status=503 bytes= protocol=https
2021-06-07T16:40:07.154711+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=bucuriesicredinta.herokuapp.com request_id=5b400e69-b61d-4c4a-a846-e71fc84f2c8d fwd="109.103.246.72" dyno= connect= service= status=503 bytes= protocol=https                 

这是为什么?我尝试了在网上找到的更多解决方案,但似乎没有任何效果。这是我在根项目中的package.json文件,如果需要的话,myGit其实就是一个url,我现在刚换了:

{
  "name": "joyandfaith",
  "version": "1.0.0",
  "description": "",
  "engines": {
    "node": "14.16.1"
  },
  "main": "index.js",
  "scripts": {
    "start": "node index.js"
  },
  "repository": {
    "type": "git",
    "url": "myGit"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "bugs": {
    "url": "myGit"
  },
  "homepage": "myGit"
}

我的配置变量中没有指定端口,我还仔细检查了配置变量中是否有所有环境变量,我觉得一切正常。我觉得package.json可能有问题,因为我手动创建了这个文件。或者也许是关于 Procfile 的?我读过它,但我找不到它。任何想法都会有所帮助,非常感谢!

0 个答案:

没有答案