安装 sqlite3 时 Heroku python 应用程序无法构建

我在 Heroku 上的 Python 应用程序未能始终如一地构建:


-----> Python app detected

 !     Python has released a security update! Please consider upgrading to python-3.6.8

       Learn More: https://devcenter.heroku.com/articles/python-runtimes

-----> Found python-3.6.4, removing

-----> Installing python-3.6.7

-----> Installing pip

-----> Installing SQLite3

 !     Push rejected, failed to compile Python app.

 !     Push failed

这是一个在本地运行良好的 Django 应用程序。


python-3.6.7中指定runtime.txt,我已经尝试过其他版本。


我的Procfile包含:



release: python <appname>/manage.py migrate

web: python <appname>/manage.py runserver 0.0.0.0:$PORT

我可能可以使用gunicorn,但这在这里无关紧要。构建日志似乎没有为我提供任何信息。


requirements.txt


chardet==3.0.4

Django==2.0.2

idna==2.6

pytz==2018.3

requests==2.18.4

urllib3==1.22

dj-database-url==0.5.0

setuptools==1.0.0


慕田峪4524236
浏览 191回答 2
2回答

繁星淼淼

在你的 app.json 中试试这个。虽然这是一个临时解决方案"buildpacks": [&nbsp; &nbsp; {&nbsp; &nbsp; &nbsp; "url": "https://github.com/heroku/heroku-buildpack-python.git#remove-&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sqlite"&nbsp; &nbsp; },

FFIVE

见:https ://travis-ci.org/heroku/heroku-buildpack-python将堆栈从升级heroku-16到heroku-18in&nbsp;app.json。
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Python