我正在尝试在Heroku上使用Python / Flask部署我的第一个应用程序。我真的不知道我在做什么,只是按照https://devcenter.heroku.com/articles/python#prerequisites的教程。当我输入命令heroku ps:scale web=1
时,我收到错误消息“No such type as 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$
非常感谢任何帮助!
答案 0 :(得分:4)
Procfile以错误的.txt扩展名保存 - 一旦我删除了它的扩展名。