2017-05-24 160 views
0

大家好,我的流星JS的應用程序是顯示如下:應用程序錯誤的Heroku與流星JS部署

應用程序錯誤 應用程序中發生錯誤,您的網頁無法送達。如果您是應用程序所有者,請查看日誌以獲取詳細信息。


這裏是我跑的命令(通過下面的教程,獲得迄今爲止部署的):

的Heroku創建mkrteach

Heroku的插件:創建mongolab

Heroku的配置:設置ROOT_URL = https://mkrteach.herokuapp.com/

混帳推Heroku的主


這裏是我的Heroku的日誌顯示:

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

[email protected] 
2017-05-24T23:43:20.191506+00:00 app[api]: Release v2 created by user [email protected] 
2017-05-24T23:43:20.019249+00:00 app[api]: Release v1 created by user [email protected] 
2017-05-24T23:43:20.019249+00:00 app[api]: Initial release by user [email protected] 
2017-05-24T23:43:43.106898+00:00 app[api]: Attach MONGODB (@ref:mongolab-round-29311) by user [email protected] 
2017-05-24T23:43:43.106898+00:00 app[api]: Release v3 created by user [email protected] 
2017-05-24T23:44:21.663825+00:00 app[api]: Release v4 created by user mohamm[email protected] 
2017-05-24T23:44:21.663825+00:00 app[api]: Set ROOT_URL config vars by user [email protected] 
2017-05-24T23:44:32.978581+00:00 app[api]: Release v5 created by user [email protected] 
2017-05-24T23:44:32.978581+00:00 app[api]: Set METEOR_SETTINGS config vars by user [email protected] 
2017-05-24T23:44:50.000000+00:00 app[api]: Build started by user [email protected] 
2017-05-24T23:46:56.713557+00:00 app[api]: Deploy 9e5efce2 by user [email protected] 
2017-05-24T23:46:56.713557+00:00 app[api]: Release v6 created by user [email protected] 
2017-05-24T23:46:56.746656+00:00 app[api]: Scaled to [email protected]:Free by user [email protected] 
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$ 

我不知道如何解決這個問題,誰能告訴我如何解決這個問題?

+0

哪個流星buildpack要用? –

+0

[流星建立的箭頭函數崩潰heroku部署]的可能重複(https://stackoverflow.com/questions/42870295/arrow-function-from-meteor-build-is-crashing-heroku-deploy) – Madusha

回答

0

我遇到了同樣的問題。看來您使用的Heroku buildpack已不再適用。將buildpack更改爲新的。這是工作:https://github.com/AdmitHub/meteor-buildpack-horse.git

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

通過儀表板

  1. 轉到您的Heroku的儀表盤,並選擇您的應用程序
  2. 轉到設置選項卡,找到Buildpacks部分
  3. 刪除現有的buildpack並添加新的

通過命令行

找出你所使用的buildpack,與

heroku buildpacks 

複製鏈接到老buildpack的混帳回購協議。

heroku config:unset REPLACE_WITH_OLD_BUILDPACK_LINK 

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

無論你採用什麼方法,你將不得不推的更新與git push heroku master重建應用程序。