【问题标题】:Getting error on heroku python app deployment在heroku python应用程序部署上出错
【发布时间】:2020-06-08 10:41:23
【问题描述】:
2020-06-08T13:29:34.646588+00:00 heroku[web.1]: State changed from crashed to down
2020-06-08T13:29:43.000000+00:00 app[api]: Build succeeded
2020-06-08T13:30:05.843602+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=ocr101.herokuapp.com request_id=63c4ab08-9f17-43b9-8910-878cffcd1df8 fwd="157.47.254.72" dyno= connect= service= status=503 bytes= protocol=https
2020-06-08T13:30:07.174059+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=ocr101.herokuapp.com request_id=f357c946-e98e-41b5-84e3-a62b08ff4484 fwd="157.47.254.72" dyno= connect= service= status=503 bytes= protocol=https

过程文件
工人:python bot.py

【问题讨论】:

  • 在您的 Procfile 中将 web 更改为 worker。由于您正在使用电报机器人,因此您可能不需要端口。

标签: python heroku python-telegram-bot


【解决方案1】:
web: python bot.py

会解决这个问题,虽然它提供了许多 heroku[router]: at=info 消息,我试图弄清楚如何隐藏,但我有一个运行节点 js 代码的机器人,它没有提供这些信息消息,所以我确定有可能

【讨论】:

    猜你喜欢
    • 2018-03-29
    • 1970-01-01
    • 2018-02-09
    • 1970-01-01
    • 2022-06-29
    • 1970-01-01
    • 1970-01-01
    • 2017-08-22
    • 2018-08-16
    相关资源
    最近更新 更多