5

After deploying the app on Heroku and running it, it shows an error like this:

Application error An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details.

And when I check the logs, it shows:

2018-03-30T07:25:13.273255+00:00 heroku[web.1]: Process exited with status 127
2018-03-30T07:25:14.757951+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=protected-journey-42490.herokuapp.com request_id=fdaf6efd-b490-4848-8f55-f583f1fc6b50 fwd="125.16.236.158" dyno= connect= service= status=503 bytes= protocol=https
2018-03-30T07:25:15.888944+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=protected-journey-42490.herokuapp.com request_id=7cdefbb6-e1a0-42bf-bb4d-0deed69f9c61 fwd="125.16.236.158" dyno= connect= service= status=503 bytes= protocol=https

Here's the reference link of my repository : pages_project

7
  • Can you please describe the exact process. Also never upload secret key and db to bitbucket. Heroku recommend using decouple and environment variable Commented Mar 30, 2018 at 7:44
  • @VipinMohan after successfully deployed my code on Heroku when i run the command : Heroku open it shows the above described error. I dont understand why my app is crashed again and again. Commented Mar 30, 2018 at 7:53
  • @VipinMohan also when i run it on local server that is provided by django itself..its working fine for me. Commented Mar 30, 2018 at 7:55
  • simpleisbetterthancomplex.com/tutorial/2016/08/09/… use this, i deployed following this tutorial, and always check heroku logs, and use git gui, it is helpful, in locating errors Commented Mar 30, 2018 at 8:53
  • 1
    which database did you use, heroku does not support sqlite, you should use postgres. Commented Mar 30, 2018 at 8:55

1 Answer 1

8

If you are using gunicorn then add it in requitements.txt file

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.