我無法將我的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',我複製文件名時出錯 –