我无法将我的Flask应用程序部署到Heroku ... 我已经在每个线程中搜索了我可以和没有为我工作:添加一个runtime.txt,设置一个buildpack。我不知道现在可能会出现什么问题。Heroku Python未能检测到匹配的应用程序buildpack
下面是我的应用程序根目录:
Project
- .git
- Procfile
- Readme.md
- app
- config.py
- requirements.txt
- runtime.txt
- web.py
这里的requirements.txt的内容:
appdirs==1.4.3
click==6.7
Flask==0.12.1
Flask-WTF==0.14.2
itsdangerous==0.24
Jinja2==2.9.5
MarkupSafe==1.0
packaging==16.8
pyparsing==2.2.0
six==1.10.0
Werkzeug==0.12.1
WTForms==2.1
的Procfile:
web: python web.py
而且runtime.txt :
python-2.7.13
当我做git push heroku master
,它打印:
remote: Compressing source files... done.
remote: Building source:
remote:
remote: ! No default language could be detected for this app.
remote: HINT: This occurs when Heroku cannot detect the buildpack to use for this application automatically.
remote: See https://devcenter.heroku.com/articles/buildpacks
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to appname.
remote:
我尝试添加buildpack与heroku buildpacks:add heroku/Python
但后来它说,它不能检测应用的蟒蛇buildpack。
我可能做错了什么?
对不起蟒蛇的版本,它已经是一个'requirements.txt',我复制文件名时出错 –