我尝试将django应用程序部署到heroku,但出现错误:
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Building on the Heroku-20 stack
remote: -----> Using buildpack: heroku/python
remote: -----> App not compatible with buildpack: https://buildpack-registry.s3.amazonaws.com/buildpacks/heroku/python.tgz
remote: More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to tandt-online-webchat.
remote:
To https://git.heroku.com/tandt-online-webchat.git
! [remote rejected] master -> master (pre-receive hook declined)
error: не удалось отправить некоторые ссылки в «https://git.heroku.com/tandt-online-webchat.git»
我做了所有需要的事情: git添加。 git commit-m“relize heroku vers 1” 当我推heroku master的时候,我得到了这个错误
我有所有需要的文件:Procfile和requirements.txt 在Procfile中,我有:web:gunicorn web_chat.wsgi和to requirements.txt,我输入pip freeze,然后舒尔我有什么gunicorn她
我做错了什么
一个常见的错误是您的requirements.txt文件有误。另一个可能发生的错误是,你的承诺已经非常错误。为此,请在本地重新初始化git存储库。然后确保添加了requirements.txt文件。你可以跟我核对一下
如果这仍然不起作用,请让我知道
谢谢,但我并不完全了解你。我的setings.py文件到此结束sam有什么问题吗
是的,这是很多人面临的另一个问题。在settings.py文件中
这允许Heroku将静态文件存储在git存储库的“static”文件夹中。“设置”文件夹中必须已有静态url。否则:
此外,如果你有任何其他问题,试着编辑你原来的问题,而不是问一个新的问题,因为这有时会扩展页面太多
相关问题 更多 >
编程相关推荐