我有一个基于Flask的小型API,已将其部署到Heroku。这是整个Procfile:
web: flask db upgrade; gunicorn app:app
该应用程序已正确部署到Heroku并也正常运行。但是,在本地计算机上,当我使用heroku local
命令时出现此错误:
(venv)
rm@saturn MINGW64 /d/projects/reading-list-api
$ heroku local
[OKAY] Loaded ENV .env File as KEY=VALUE Format
8:26:02 AM web.1 | Usage: flask db [OPTIONS] COMMAND [ARGS]...
8:26:02 AM web.1 | Try "flask db --help" for help.
8:26:02 AM web.1 | Error: No such command "upgrade;".
[DONE] Killing all processes with signal SIGINT
8:26:02 AM web.1 Exited with exit code null
我尝试将Procfile更改为:
web:
flask db upgrade
gunicorn app:app
但是这也无济于事。我在Windows系统上,但使用Git Bash作为控制台。
我还能尝试什么?