gpt4 book ai didi

git - heroku 应用程序上的应用程序错误

转载 作者:太空宇宙 更新时间:2023-11-04 02:39:18 25 4
gpt4 key购买 nike

我不确定类似的问题会对我有帮助。我在这里发布我的问题。

当我尝试从 Git 推送后运行 heroku 应用程序时。我收到应用程序错误。我尝试从 Heroku 日志中进行理解。但我无法解决它。以下是我的 Heroku 日志:

2013-08-22T13:41:39.721111+00:00 heroku[api]: Enable Logplex by venkateshwaran.selvaraj@gmail.com
2013-08-22T13:41:39.740369+00:00 heroku[api]: Release v2 created by venkateshwaran.selvaraj@gmail.com
2013-08-22T13:51:31+00:00 heroku[slug-compiler]: Slug compilation started
2013-08-22T13:51:46.559912+00:00 heroku[api]: Scale to web=1 by venkateshwaran.selvaraj@gmail.com
2013-08-22T13:51:46.584043+00:00 heroku[api]: Add PATH config by venkateshwaran.selvaraj@gmail.com
2013-08-22T13:51:46.600930+00:00 heroku[api]: Release v3 created by venkateshwaran.selvaraj@gmail.com
2013-08-22T13:51:46.646480+00:00 heroku[api]: Deploy 8435747 by venkateshwaran.selvaraj@gmail.com
2013-08-22T13:51:46.670367+00:00 heroku[api]: Release v4 created by venkateshwaran.selvaraj@gmail.com
2013-08-22T13:51:46+00:00 heroku[slug-compiler]: Slug compilation finished
2013-08-22T13:51:50.333471+00:00 heroku[web.1]: Starting process with command `node venkat1.js`
2013-08-22T13:51:51.462059+00:00 app[web.1]: Script: /app/venkat1.js
2013-08-22T13:51:51.462059+00:00 app[web.1]: To: hello.txt
2013-08-22T13:51:51.462059+00:00 app[web.1]: Wrote: A startup is a business built to grow rapidly.
2013-08-22T13:51:52.874576+00:00 heroku[web.1]: State changed from starting to crashed
2013-08-22T13:51:52.876904+00:00 heroku[web.1]: State changed from crashed to starting
2013-08-22T13:51:52.863778+00:00 heroku[web.1]: Process exited with status 0
2013-08-22T13:51:54.448525+00:00 heroku[web.1]: Starting process with command `node venkat1.js`
2013-08-22T13:51:55.205895+00:00 app[web.1]: Script: /app/venkat1.js
2013-08-22T13:51:55.205895+00:00 app[web.1]: Wrote: A startup is a business built to grow rapidly.
2013-08-22T13:51:55.205895+00:00 app[web.1]: To: hello.txt
2013-08-22T13:51:56.510045+00:00 heroku[web.1]: State changed from starting to crashed
2013-08-22T13:51:56.495030+00:00 heroku[web.1]: Process exited with status 0
2013-08-22T13:51:57.488699+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=hidden-caverns-8212.herokuapp.com fwd="182.65.171.54" dyno= connect= service= status=503 bytes=
2013-08-22T13:52:06.605453+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=hidden-caverns-8212.herokuapp.com fwd="182.65.171.54" dyno= connect= service= status=503 bytes=
2013-08-22T13:52:07.142203+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=hidden-caverns-8212.herokuapp.com fwd="182.65.171.54" dyno= connect= service= status=503 bytes=

我的文件位于 Github

最佳答案

看起来你正在做Homework 1对于 Coursera Startup Engineering当然。

该脚本未设置为托管 Web 服务器。您正在运行的代码在关闭之前将消息写入 hello.txt,这应该适用于您的本地计算机或 AWS 实例。您可以通过检查 hello.txt 文件来查看结果。

Homework 3您将获得使用 node.js Express 框架创建 Web 服务器的代码,您可以将其托管在 Heroku 上并使用浏览器进行访问。

关于git - heroku 应用程序上的应用程序错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18383510/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com