在 heroku 上访问 pouchdb-server



我git克隆了pouchdb-server,并遵循了本教程。

我像这样设置了 procfile:web: pouchdb-server --port 5984

当我heroku local web运行时它工作正常,但当我heroku open运行时,它不起作用。我不断收到错误at=error code=H10 desc="App crashed" method=GET path="/" host=myhost.herokuapp.com request_id=someidnumber fwd="myglobalip" dyno= connect= service= status=503 bytes= protocol=https

我知道我需要像教程中那样设置index.js,但我不知道如何设置。

我想做的是当我访问https://myhost.herokuapp.com/就像我正在访问 pouchdb 服务器一样。因此,我向该地址发出的任何请求都像我向 pouchdb 服务器发出的那样。当我输入https://myhost.herokuapp.com/_utils时,我访问了Fauxton网络界面。

事实证明,github 上有一个问题,要求与评论中的解决方案完全相同:https://github.com/pouchdb/pouchdb-server/issues/124

最新更新