在 Heroku 上发布 Meteor 应用程序

Publishing Meteor Application on Heroku

我正在尝试将应用程序发布到 heroku。我已经尝试了很多天,并在网上寻求帮助但无济于事。非常感谢任何帮助。我通常通过 运行ning meteor --settings settings.json

在本地 运行 应用程序

2018-07-22T06:56:43.644749+00:00 app[web.1]:     at /app/.meteor/heroku_build/app/programs/server/boot.js:411:36
2018-07-22T06:56:43.644745+00:00 app[web.1]:     at packages/meteor.js:78:4
2018-07-22T06:56:43.644747+00:00 app[web.1]:     at packages/meteor.js:1438:3
2018-07-22T06:56:43.644750+00:00 app[web.1]:     at Array.forEach (<anonymous>)
2018-07-22T06:56:43.644752+00:00 app[web.1]:     at /app/.meteor/heroku_build/app/programs/server/boot.js:220:19
2018-07-22T06:56:43.644759+00:00 app[web.1]:     at /app/.meteor/heroku_build/app/programs/server/boot.js:471:5
2018-07-22T06:56:43.644761+00:00 app[web.1]:     at Function.run (/app/.meteor/heroku_build/app/programs/server/profile.js:510:12)
2018-07-22T06:56:43.644762+00:00 app[web.1]:     at /app/.meteor/heroku_build/app/programs/server/boot.js:470:11
2018-07-22T07:15:39.976102+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=zera.herokuapp.com request_id=e3d0a4be-37bd-4fdc-bcc5-746639370eda fwd="202.156.97.186" dyno= connect= service= status=503 bytes= protocol=https
2018-07-22T07:15:40.752510+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=zera.herokuapp.com request_id=ace7e44d-741d-4d29-92b0-a92bc8560c8c fwd="202.156.97.186" dyno= connect= service= status=503 bytes= protocol=https

这是我的配置变量

非常感谢您的帮助,我很感激任何建议。

  • MONGO_URL而不是MONGODB_URI
  • settings.json 文件的 content 复制粘贴到 METEOR_SETTINGS 环境变量的值中,或使用 Heroku CLI 分配它(在在这种情况下,您可以在命令中使用 cat 工具。