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

标签 git node.js heroku

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

当我尝试从 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/

相关文章:

git - 无法使用 Git 存储更改

Git 推送到登台服务器

node.js - 无法使用 Node.js 连接到 MongoDB

javascript - res.json 返回无意修改的输入

postgresql - 如何在 Heroku Postgres 数据库中查找 "missing"行?

angularjs - 使用 Webpack 构建的 Heroku 上的 Angular 应用程序 - 环境变量?

python - GitPython 并向 Git 对象发送命令

git - 带有 Jenkins Git 插件和分支说明符的分离式 HEAD

json - 如何在ActionScript3中解析node.js REST api对象

mongodb - Heroku + Node.js + MongoHQ + Expressjs