2016-09-28 175 views
0

我跟隨此guide爲了部署我的應用程序。我的推送沒有錯誤,但是當我在我的heroku儀表板上打開應用程序時,遇到了應用程序錯誤頁面。Heroku錯誤與流星1.4.1.1

這是日誌顯示:

2016-09-28T16:05:56.493404+00:00 heroku[web.1]: Starting process with command `npm start` 
2016-09-28T16:05:58.915131+00:00 app[web.1]: 
2016-09-28T16:05:58.915154+00:00 app[web.1]: > [email protected] start /app 
2016-09-28T16:05:58.915155+00:00 app[web.1]: > meteor run 
2016-09-28T16:05:58.915155+00:00 app[web.1]: 
2016-09-28T16:05:58.920402+00:00 app[web.1]: sh: 1: meteor: not found 
2016-09-28T16:05:58.928190+00:00 app[web.1]: 
2016-09-28T16:05:58.938161+00:00 app[web.1]: npm ERR! Linux 3.13.0-93-generic 
2016-09-28T16:05:58.938683+00:00 app[web.1]: npm ERR! argv "/app/.heroku/node/bin/node" "/app/.heroku/node/bin/npm" "start" 
2016-09-28T16:05:58.939001+00:00 app[web.1]: npm ERR! node v5.11.1 
2016-09-28T16:05:58.939801+00:00 app[web.1]: npm ERR! npm v3.8.6 
2016-09-28T16:05:58.940297+00:00 app[web.1]: npm ERR! file sh 
2016-09-28T16:05:58.940554+00:00 app[web.1]: npm ERR! code ELIFECYCLE 
2016-09-28T16:05:58.940702+00:00 app[web.1]: npm ERR! errno ENOENT 
2016-09-28T16:05:58.940855+00:00 app[web.1]: npm ERR! syscall spawn 
2016-09-28T16:05:58.941055+00:00 app[web.1]: npm ERR! [email protected] start: `meteor run` 
2016-09-28T16:05:58.941269+00:00 app[web.1]: npm ERR! spawn ENOENT 
2016-09-28T16:05:58.941504+00:00 app[web.1]: npm ERR! 
2016-09-28T16:05:58.941722+00:00 app[web.1]: npm ERR! Failed at the [email protected] start script 'meteor run'. 
2016-09-28T16:05:58.941941+00:00 app[web.1]: npm ERR! Make sure you have the latest version of node.js and npm installed. 
2016-09-28T16:05:58.942090+00:00 app[web.1]: npm ERR! If you do, this is most likely a problem with the TTR package, 
2016-09-28T16:05:58.942204+00:00 app[web.1]: npm ERR! not with npm itself. 
2016-09-28T16:05:58.942309+00:00 app[web.1]: npm ERR! Tell the author that this fails on your system: 
2016-09-28T16:05:58.942414+00:00 app[web.1]: npm ERR!  meteor run 
2016-09-28T16:05:58.942519+00:00 app[web.1]: npm ERR! You can get information on how to open an issue for this project with: 
2016-09-28T16:05:58.942625+00:00 app[web.1]: npm ERR!  npm bugs TTR 
2016-09-28T16:05:58.942728+00:00 app[web.1]: npm ERR! Or if that isn't available, you can get their info via: 
2016-09-28T16:05:58.942985+00:00 app[web.1]: npm ERR!  npm owner ls TTR 
2016-09-28T16:05:58.943094+00:00 app[web.1]: npm ERR! There is likely additional logging output above. 
2016-09-28T16:05:58.946745+00:00 app[web.1]: 
2016-09-28T16:05:58.947021+00:00 app[web.1]: npm ERR! Please include the following file with any support request: 
2016-09-28T16:05:58.947129+00:00 app[web.1]: npm ERR!  /app/npm-debug.log 
2016-09-28T16:05:59.015852+00:00 heroku[web.1]: State changed from starting to crashed 
2016-09-28T16:05:59.001860+00:00 heroku[web.1]: Process exited with status 1 

我曾嘗試https://github.com/AdmitHub/meteor-buildpack-horse.githttps://github.com/jordansissel/heroku-buildpack-meteor.git buildpacks兩者。任何想法,我可以嘗試讓這個運行?

回答

0

希望我會幫助。

這就是我用來做什麼的指導,並每隔一件事是確定對我來說:

https://medium.com/@leonardykris/how-to-run-a-meteor-js-application-on-heroku-in-10-steps-7aceb12de234

有了這個buildpack(https://github.com/dassiorleando/heroku-buildpack-meteor),我從分叉(https://github.com/jordansissel/heroku-buildpack-meteor)和編輯節點引擎版本允許我部署使用新版流星(1.4.XX)製作的應用程序。

如果有幫助,只需將其標記爲最佳答案,如果不是給我們例如一個github存儲庫,並在希望部署到heroku上的應用程序的簡單版本中使用,那麼我們將盡力做到這一點,出了什麼問題。

+0

該buildpack實際上不工作(不維護),你應該使用OP的buildpack:https://github.com/AdmitHub/meteor-buildpack-horse – JaySH

0

我有這個問題,我不得不編輯「姓名」的package.json相匹配的名字在heroku上的應用程序。這就是爲什麼當您通過Heroku創建應用程序(命令行或Heroku控制檯)時運行「流星創建」時建議您使用相同的應用程序名稱