python – Heroku的新手 – “没有像web这样的类型”

前端之家收集整理的这篇文章主要介绍了python – Heroku的新手 – “没有像web这样的类型”前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

我正在尝试在Heroku上使用Python / Flask部署我的第一个应用程序.我真的不知道我在做什么,我只是在https://devcenter.heroku.com/articles/python#prerequisites处按照教程.当我输入命令heroku ps:scale web = 1我收到错误消息“没有这样的类型为web”.我的Procfile说web:python scrabble_cheater.py,我认为是正确的.这是我的终端的日志:

(venv)jason-olsens-macbook-pro:scrabble paulnichols$heroku status
=== Heroku Status
Development: No known issues at this time.
Production:  No known issues at this time.
(venv)jason-olsens-macbook-pro:scrabble paulnichols$heroku config
=== enigmatic-mountain-1395 Config Vars
LANG:             en_US.UTF-8
LD_LIBRARY_PATH:  /app/.heroku/vendor/lib
LIBRARY_PATH:     /app/.heroku/vendor/lib
PATH:             /app/.heroku/venv/bin:/bin:/usr/local/bin:/usr/bin
PYTHONHASHSEED:   random
PYTHONHOME:       /app/.heroku/venv/
PYTHONPATH:       /app/
PYTHONUNBUFFERED: true
(venv)jason-olsens-macbook-pro:scrabble paulnichols$heroku ps
(venv)jason-olsens-macbook-pro:scrabble paulnichols$git push heroku master
Warning: Permanently added the RSA host key for IP address '50.19.85.154' to the list of known hosts.
Everything up-to-date
(venv)jason-olsens-macbook-pro:scrabble paulnichols$heroku ps:scale web=1
Scaling web processes... Failed
 !    No such type as web
(venv)jason-olsens-macbook-pro:scrabble paulnichols$

任何帮助是极大的赞赏!

最佳答案
Procfile以错误的.txt扩展名保存 – 一旦我删除了它的扩展名.
原文链接:https://www.f2er.com/python/439411.html

猜你在找的Python相关文章