应用程序错误Heroku使用meteor JS进行部署

时间:2017-05-24 23:11:31

标签: meteor heroku

您好我的meteor js应用程序显示以下内容:

应用程序错误 应用程序中发生错误,无法提供您的页面。如果您是应用程序所有者,请检查日志以获取详细信息。

<小时/> 这是我运行的命令(通过遵循教程,到目前为止已部署):

heroku创建mkrteach

heroku插件:创建mongolab

heroku config:设置ROOT_URL = https://mkrteach.herokuapp.com/

git push heroku master

以下是我的heroku日志显示的内容:

2017-05-24T23:43:20.191506+00:00 app[api]: Enable Logplex by user 

mohammadhunan@gmail.com
2017-05-24T23:43:20.191506+00:00 app[api]: Release v2 created by user mohammadhunan@gmail.com
2017-05-24T23:43:20.019249+00:00 app[api]: Release v1 created by user mohammadhunan@gmail.com
2017-05-24T23:43:20.019249+00:00 app[api]: Initial release by user mohammadhunan@gmail.com
2017-05-24T23:43:43.106898+00:00 app[api]: Attach MONGODB (@ref:mongolab-round-29311) by user mohammadhunan@gmail.com
2017-05-24T23:43:43.106898+00:00 app[api]: Release v3 created by user mohammadhunan@gmail.com
2017-05-24T23:44:21.663825+00:00 app[api]: Release v4 created by user mohammadhunan@gmail.com
2017-05-24T23:44:21.663825+00:00 app[api]: Set ROOT_URL config vars by user mohammadhunan@gmail.com
2017-05-24T23:44:32.978581+00:00 app[api]: Release v5 created by user mohammadhunan@gmail.com
2017-05-24T23:44:32.978581+00:00 app[api]: Set METEOR_SETTINGS config vars by user mohammadhunan@gmail.com
2017-05-24T23:44:50.000000+00:00 app[api]: Build started by user mohammadhunan@gmail.com
2017-05-24T23:46:56.713557+00:00 app[api]: Deploy 9e5efce2 by user mohammadhunan@gmail.com
2017-05-24T23:46:56.713557+00:00 app[api]: Release v6 created by user mohammadhunan@gmail.com
2017-05-24T23:46:56.746656+00:00 app[api]: Scaled to web@1:Free by user mohammadhunan@gmail.com
2017-05-24T23:44:50.000000+00:00 app[api]: Build succeeded
2017-05-24T23:47:04.554518+00:00 heroku[web.1]: Starting process with command `.meteor/heroku_build/bin/node .meteor/heroku_build/app/main.js`
2017-05-24T23:47:07.867019+00:00 heroku[web.1]: Process exited with status 8
2017-05-24T23:47:07.886082+00:00 heroku[web.1]: State changed from starting to crashed
2017-05-24T23:47:07.887443+00:00 heroku[web.1]: State changed from crashed to starting
2017-05-24T23:47:07.715326+00:00 app[web.1]: 
2017-05-24T23:47:07.715736+00:00 app[web.1]: /app/.meteor/heroku_build/app/programs/server/mini-files.js:82
2017-05-24T23:47:07.716081+00:00 app[web.1]: const unicodeNormalizePath = (path) => {
2017-05-24T23:47:07.716147+00:00 app[web.1]:                                      ^
2017-05-24T23:47:07.741911+00:00 app[web.1]: SyntaxError: Unexpected token >
2017-05-24T23:47:07.741913+00:00 app[web.1]:     at Module._compile (module.js:439:25)
2017-05-24T23:47:07.741914+00:00 app[web.1]:     at Object.Module._extensions..js (module.js:474:10)
2017-05-24T23:47:07.741915+00:00 app[web.1]:     at Module.load (module.js:356:32)
2017-05-24T23:47:07.741915+00:00 app[web.1]:     at Function.Module._load (module.js:312:12)
2017-05-24T23:47:07.741916+00:00 app[web.1]:     at Module.require (module.js:364:17)
2017-05-24T23:47:07.741917+00:00 app[web.1]:     at require (module.js:380:17)
2017-05-24T23:47:07.741918+00:00 app[web.1]:     at Object.<anonymous> (/app/.meteor/heroku_build/app/programs/server/boot.js:9:13)
2017-05-24T23:47:07.741918+00:00 app[web.1]:     at Module._compile (module.js:456:26)
2017-05-24T23:47:07.741919+00:00 app[web.1]:     at Object.Module._extensions..js (module.js:474:10)
2017-05-24T23:47:07.741919+00:00 app[web.1]:     at Module.load (module.js:356:32)
2017-05-24T23:47:12.921976+00:00 heroku[web.1]: Starting process with command `.meteor/heroku_build/bin/node .meteor/heroku_build/app/main.js`
2017-05-24T23:47:14.666363+00:00 app[web.1]: /app/.meteor/heroku_build/app/programs/server/mini-files.js:82
2017-05-24T23:47:14.665865+00:00 app[web.1]: 
2017-05-24T23:47:14.672056+00:00 app[web.1]:     at Module._compile (module.js:439:25)
2017-05-24T23:47:14.666824+00:00 app[web.1]:                                      ^
2017-05-24T23:47:14.672057+00:00 app[web.1]:     at Object.Module._extensions..js (module.js:474:10)
2017-05-24T23:47:14.666765+00:00 app[web.1]: const unicodeNormalizePath = (path) => {
2017-05-24T23:47:14.672054+00:00 app[web.1]: SyntaxError: Unexpected token >
2017-05-24T23:47:14.672058+00:00 app[web.1]:     at Module.load (module.js:356:32)
2017-05-24T23:47:14.672058+00:00 app[web.1]:     at Function.Module._load (module.js:312:12)
2017-05-24T23:47:14.672059+00:00 app[web.1]:     at Module.require (module.js:364:17)
2017-05-24T23:47:14.672059+00:00 app[web.1]:     at require (module.js:380:17)
2017-05-24T23:47:14.672060+00:00 app[web.1]:     at Object.<anonymous> (/app/.meteor/heroku_build/app/programs/server/boot.js:9:13)
2017-05-24T23:47:14.672062+00:00 app[web.1]:     at Module.load (module.js:356:32)
2017-05-24T23:47:14.672061+00:00 app[web.1]:     at Module._compile (module.js:456:26)
2017-05-24T23:47:14.672061+00:00 app[web.1]:     at Object.Module._extensions..js (module.js:474:10)
2017-05-24T23:47:14.751083+00:00 heroku[web.1]: State changed from starting to crashed
2017-05-24T23:47:14.731102+00:00 heroku[web.1]: Process exited with status 8
2017-05-24T23:47:27.649678+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=mkred-teach.herokuapp.com request_id=ee6e0ca4-3bee-48ae-925a-562d23e47dd7 fwd="208.185.23.206" dyno= connect= service= status=503 bytes= protocol=https
2017-05-24T23:47:28.143232+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=mkred-teach.herokuapp.com request_id=5c736339-3336-4c8a-986a-ae572f99a441 fwd="208.185.23.206" dyno= connect= service= status=503 bytes= protocol=https
Mohammads-MacBook-Pro:mkrED2 minimoe$ 

我不确定如何解决这个问题,有谁能告诉我如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

我遇到了同样的问题。看来您使用的Heroku buildpack不再有效。将buildpack更改为更新的。这个工作正在:https://github.com/AdmitHub/meteor-buildpack-horse.git

要更改buildpack,您可以使用仪表板或命令行。

通过信息中心

  1. 转到您的Heroku信息中心并选择您的应用
  2. 转到“设置”标签,找到“构建包”部分
  3. 删除现有的buildpack并添加新的
  4. 通过命令行

    使用

    找出您正在使用的构建包
    heroku buildpacks
    

    将链接复制到旧buildpack的git repo。

    heroku config:unset REPLACE_WITH_OLD_BUILDPACK_LINK
    
    heroku buildpacks:set https://github.com/AdmitHub/meteor-buildpack-horse.git
    

    无论您使用哪种方法,都必须使用git push heroku master推送更新以重建应用。