5

我正在尝试在 Heroku 上使用 Python/Flask 部署我的第一个应用程序。我真的不知道自己在做什么,只是按照https://devcenter.heroku.com/articles/python#prerequisites上的教程进行操作。当我键入命令时heroku ps:scale web=1,我收到错误消息“ No such type as web”。我Procfileweb: 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$ 

任何帮助是极大的赞赏!

4

1 回答 1

4

Procfile 被错误地保存为 .txt 扩展名——一旦我删除了它工作的扩展名。

于 2012-11-26T19:30:05.250 回答