【问题标题】:How to solve "Application Error" in Heroku (Python) [duplicate]如何解决 Heroku(Python)中的“应用程序错误”[重复]
【发布时间】:2017-01-05 16:28:50
【问题描述】:

我在Python-Django 框架中创建了一个项目。我在heroku 中部署了该项目。

当我尝试在终端上使用heroku open 命令时,我得到了

Application Error

An error occurred in the application and your page could not be served. Please try again in a few moments.

If you are the application owner, check your logs for details.

请帮我解决这个错误。

【问题讨论】:

标签: python django heroku github


【解决方案1】:

从您的其他问题来看,这似乎是重复的,我建议您仔细按照以下步骤操作:

https://devcenter.heroku.com/articles/django-app-configuration#the-basics

具体来说,您需要在 requirements.txt 中包含一个 procfile + 正确的应用程序,首先使用 pip install 安装它们,然后使用 pip freeze > requirements.txt 捕获它们

从您发布的日志来看,您似乎应该从 gunicorn 开始,但它可能不是您唯一缺少的应用程序。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-04-16
    • 1970-01-01
    • 2021-12-31
    • 1970-01-01
    • 2019-04-17
    • 1970-01-01
    • 1970-01-01
    • 2020-11-29
    相关资源
    最近更新 更多