部署在heroku上的应用可能导致崩溃的原因是什么? [英] What are the possible causes for app deployed on heroku to get crashed?

查看:132
本文介绍了部署在heroku上的应用可能导致崩溃的原因是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


2016-07-28T11:41我有一个nodejs应用程序,它的构建成功,但后来崩溃了。 :39.150069 + 00:00 app [web.1]:at Function.Module._load(module.js:314:12)

2016-07-28T11:41 :39.150070 + 00:00 app [web.1]:启动时(node.js:148:18)

2016-07-28T11:41:39.225296 + 00 :00 heroku [web.1]:进程退出状态1



2016-07-28T13:24:05.344533 + 00:00 heroku [router]:at = error code = H10 desc =App crashedmethod = GET path =/?hub.mode = subscribe& hub.challenge = 432092788& hub.verify_token = fb_bothost = fb-121071064.herokuapp.com request_id = 77443caa-168e- 4428-9f43-9611d8230b9e fwd =66.220.146.21dyno = connect = service = status = 503 bytes =

2016-07-28T13:36:37.043656 + 00: 00 heroku [router]:at = error code = H10 desc =App crashedmethod = GET path =/ favicon.icohost = fb-121071064.herokuapp.com request_id = 03ed313b-0930-4e12-8303-1af63446a429 fwd =103.204.168.142dyno = connect = service = status = 503 bytes =



2016-07-28T13:36:37.942331 + 00:00 heroku [router]:at = error code = H10 desc = app crashedmethod = GET path =/ favicon.icohost = fb-121071064.herokuapp.com request_id = ca3b7c09-e44c-4fbb-97e1-156393b9d483 fwd =103.204.168.142dyno = connect = service = status = 503字节=



2016-07-28T13:40:46.783907 + 00:00 heroku [router]:at =错误代码= H10 desc =应用程序崩溃method = GET path =/host = fb-121071064.herokuapp.com request_id = 928318db-97b2-44c3-ae68-0a5cb20c692f fwd =103.204.168.142dyno = connect = service = status = 503 bytes =


解决方案

你有链接到你的repo / github吗?如果在语言环境中有404,那么问题可能与Heroku不兼容。当你在本地运行它时,尝试在Chrome上打开你的应用程序,然后执行'command + shift + j'来查看是否有任何错误消息。 404意味着它无法到达服务器......可能是你的api的写法有问题。



另外,我现在正在经历类似的问题。这是最接近的指南,当你看到它时似乎对heroku问题有所帮助:
http://www.tilcode.com/deploying-a-mean-stack-app-to-heroku/


I have a nodejs app.It builds successfully but then it crashes.The log says-

2016-07-28T11:41:39.150069+00:00 app[web.1]: at Function.Module._load (module.js:314:12)

2016-07-28T11:41:39.150070+00:00 app[web.1]: at startup (node.js:148:18)

2016-07-28T11:41:39.225296+00:00 heroku[web.1]: Process exited with status 1

2016-07-28T13:24:05.344533+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/?hub.mode=subscribe&hub.challenge=432092788&hub.verify_token=fb_bot" host=fb-121071064.herokuapp.com request_id=77443caa-168e-4428-9f43-9611d8230b9e fwd="66.220.146.21" dyno= connect= service= status=503 bytes=

2016-07-28T13:36:37.043656+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=fb-121071064.herokuapp.com request_id=03ed313b-0930-4e12-8303-1af63446a429 fwd="103.204.168.142" dyno= connect= service= status=503 bytes=

2016-07-28T13:36:37.942331+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=fb-121071064.herokuapp.com request_id=ca3b7c09-e44c-4fbb-97e1-156393b9d483 fwd="103.204.168.142" dyno= connect= service= status=503 bytes=

2016-07-28T13:40:46.783907+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=fb-121071064.herokuapp.com request_id=928318db-97b2-44c3-ae68-0a5cb20c692f fwd="103.204.168.142" dyno= connect= service= status=503 bytes=

解决方案

Do you have a link to your repo/github? If it's got a 404 on the localend, then the problem may not be with Heroku. As you're running it locally, try opening up your app on Chrome, then do 'command +shift+ j' to see if there are any error messages. 404 means it can't reach the server...may be something wrong with how your api is written.

Also, I'm going through similar problems right now. This is the closest guide out there that seems to help for heroku issues when you get to it: http://www.tilcode.com/deploying-a-mean-stack-app-to-heroku/

这篇关于部署在heroku上的应用可能导致崩溃的原因是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆