为什么Strapi无法在Heroku应用程序中部署?

时间:2020-11-02 16:47:16

标签: node.js mongodb heroku strapi

我正打算将我的绑带cms部署到Heroku。它给出了两个错误。

error Error connecting to the Mongo database. getaddrinfo ENOTFOUND undefined
State changed from starting to crashed ... heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" ....

我的环境文件是

heroku config:set DATABASE_URI="mongodb://paulbocuse:<password>@strapidatabase-shard-00-00-fxxx6c.mongodb.net:27017,strapidatabase-shard-00-01-fxxxc.mongodb.net:27017,strapidatabase-shard-00-02-fxxxc.mongodb.net:27017/test?ssl=true&replicaSet=strapidatabase-shard-0&authSource=admin&retryWrites=true&w=majority"
heroku config:set DATABASE_NAME="my-database-name"

0 个答案:

没有答案