【问题标题】:Your application is missing a Procfile - error while deploying django website on Heroku您的应用程序缺少 Procfile - 在 Heroku 上部署 django 网站时出错
【发布时间】:2016-07-30 12:47:54
【问题描述】:

我正在尝试将我非常基本的 django 网站部署到 heroku 并且一直出错。我在根目录中有一个 Procfile.txt 和 requirements.txt 文件,但它一直给出 procfile missing 错误。

我的 procfile 是:

web: gunicorn mysite.wsgi:application --log-file -
heroku ps:scale web=1

我的 requirements.txt 是:

Django==1.9.8
gunicorn

在构建日志中:

-----> Python app detected

 !     Warning: Your application is missing a Procfile. This file tells Heroku how to run your application.

 !     Learn more: https://devcenter.heroku.com/articles/procfile

-----> Uninstalling stale dependencies

       Uninstalling virtualenv-15.0.2:

         Successfully uninstalled virtualenv-15.0.2

     $ pip install -r requirements.txt

       Collecting gunicorn (from -r requirements.txt (line 2))

         Downloading gunicorn-19.6.0-py2.py3-none-any.whl (114kB)

       Installing collected packages: gunicorn

       Successfully installed gunicorn-19.6.0

-----> Discovering process types

       Procfile declares types -> (none)

-----> Compressing...

       Done: 41.3M

-----> Launching...

       Released v7

       https://jpthoyo.herokuapp.com/ deployed to Heroku

如果这些信息不足以找到解决方案,请告诉我。 谢谢

【问题讨论】:

    标签: django heroku


    【解决方案1】:

    该文件应仅称为 Procfile,而不是 Procfile.txt。

    【讨论】:

    • 是的,它被命名为 Procfile,它是一个 txt 文件
    猜你喜欢
    • 2015-04-28
    • 2018-02-09
    • 2016-12-21
    • 2019-12-05
    • 2021-04-28
    • 2017-09-20
    • 1970-01-01
    • 1970-01-01
    • 2019-06-25
    相关资源
    最近更新 更多