Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I am unsure that questions similar to this would help me. I am posting my question here.

When I tried running heroku app after pushing from Git. I got Application error. I tried understanding from Heroku logs. But I could not solve it. Following is my heroku log :

2013-08-22T13:41:39.721111+00:00 heroku[api]: Enable Logplex by [email protected]
2013-08-22T13:41:39.740369+00:00 heroku[api]: Release v2 created by [email protected]
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 [email protected]
2013-08-22T13:51:46.584043+00:00 heroku[api]: Add PATH config by [email protected]
2013-08-22T13:51:46.600930+00:00 heroku[api]: Release v3 created by [email protected]
2013-08-22T13:51:46.646480+00:00 heroku[api]: Deploy 8435747 by [email protected]
2013-08-22T13:51:46.670367+00:00 heroku[api]: Release v4 created by [email protected]
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=

My files are on Github

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

It looks like you are doing Homework 1 for the Coursera Startup Engineering course.

That script is not setup to host a web server. The code you are running is writing the message to hello.txt before closing, which should work on your local computer or AWS instance. You can see the results by inspecting the hello.txt file.

In Homework 3 you will get to the code that creates a web server using the node.js Express framework that you will be able to host on Heroku and visit with your browser.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.