Swift 部署到Heroku的Vapor应用程序存在问题

Swift 部署到Heroku的Vapor应用程序存在问题,swift,xcode,heroku,vapor,Swift,Xcode,Heroku,Vapor,我已将Vapor应用程序部署到Heroku,但当我尝试发出请求时,它失败并出现错误: at=error code=H10 desc=“App crash”method=GET path=“/feed”host=detect-api.herokuapp.com请求\u id=970e4005-58b0-4b34-8489-715dc9cd5e19 fwd=“5.228.26.4”dyno=connect=service=status=503 bytes=protocol=https 另外,当我运行

我已将Vapor应用程序部署到Heroku,但当我尝试发出请求时,它失败并出现错误:

at=error code=H10 desc=“App crash”method=GET path=“/feed”host=detect-api.herokuapp.com请求\u id=970e4005-58b0-4b34-8489-715dc9cd5e19 fwd=“5.228.26.4”dyno=connect=service=status=503 bytes=protocol=https

另外,当我运行这个脚本-
heroku ps:scale web=1
,我会得到下一个日志:

State changed from crashed to starting
State changed from starting to crashed
我的Procfile包含下一个代码:

web:Run service--env production--hostname 0.0.0.0--port$port

configure.swift
文件中,我添加了以下代码:

let nioServerConfig = NIOServerConfig.default(
    hostname: "0.0.0.0",
    port: Int(Environment.get("PORT") ?? "") ?? 8080
)
services.register(nioServerConfig)

如何解决这个问题?

我用PostgreSQL替换SQLite解决了这个问题。我没有在Heroku上找到任何关于SQLite支持的信息,但似乎没有对该数据库的支持(或者我做错了什么)