错误在heroku上部署meteor应用程序

时间:2016-12-30 16:31:38

标签: node.js meteor heroku

我已经在heroku上部署了我的应用程序并在本地工作正常,但是当我打开我的应用程序时,我收到此消息"应用程序错误应用程序中发生错误,无法提供您的页面。如果您是应用程序所有者,请查看日志以获取详细信息。" 当我输入" heroku日志"我明白了

var myhtml = "<div click.trigger='console.log(123)'>some text</div>";

2 个答案:

答案 0 :(得分:1)

您收到的错误表明未找到meteor命令。如果您的应用程序没有将meteor列为项目的package.json文件中的依赖项,则会发生这种情况。

如果将meteor添加为项目的依赖项,则将此更改推送到Heroku,这将导致meteor安装,现在它应该可以访问meteor命令。

答案 1 :(得分:0)

使用此版本https://github.com/AdmitHub/meteor-buildpack-horse.git并将package.json更改为

时,问题得以解决
{
  "name": "microscope",
  "engines": {
    "node": "6.9.2",
    "npm": "3.10.9"
  },
  "scripts": {
    "start": "meteor run"
  },
  "dependencies": {
    "babel-runtime": "^6.20.0",
    "meteor-node-stubs": "~0.2.0"
  }
}