简体   繁体   English

不能git push heroku master-buildpacks

[英]cant git push heroku master - buildpacks

well simply this is what i am getting; 好吧,这就是我要得到的;

 sa@sa-VPCW11S1E:/opt/hubot/bin$ heroku buildpacks
 === young-everglades-12415 Buildpack URL
 heroku/java
 sa@sa-VPCW11S1E:/opt/hubot/bin$ sudo git push heroku master
 Counting objects: 3, done.
 Delta compression using up to 2 threads.
 Compressing objects: 100% (2/2), done.
 Writing objects: 100% (3/3), 2.14 KiB | 0 bytes/s, done.
 Total 3 (delta 0), reused 0 (delta 0)
 remote: Compressing source files... done.
 remote: Building source:
 remote: 
 remote: -----> Failed to detect set buildpack https://codon-        buildpacks.s3.amazonaws.com/buildpacks/heroku/java.tgz
 remote: More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure 
 remote: 
 remote:  !     Push failed
 remote: Verifying deploy...
 remote: 
 remote: !  Push rejected to young-everglades-12415.
 remote: 
 To https://git.heroku.com/young-everglades-12415.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/young-           everglades-12415.git'
 sa@sa-VPCW11S1E:/opt/hubot/bin$ 

although i did set a buildpack on the app git push failed because no buildpack detected ? 虽然我确实在应用程序上设置了一个buildpack git push失败,因为没有检测到buildpack?

How can i resolve this, and is it actually the right steps towards deploying hubot ? 我该如何解决?这实际上是部署Hubot的正确步骤吗?

The heroku build packs still use the detection script to identify the language in use. heroku构建包仍然使用检测脚本来识别使用的语言。 Since Hubot is not a java project and it looks like you are using the java build pack, I suspect the detection script failed. 由于Hubot不是Java项目,并且看起来您正在使用Java构建包,因此我怀疑检测脚本失败。

To fix this, try removing the buildpack. 要解决此问题,请尝试删除buildpack。

% heroku buildpacks:remove heroku/java

After this I would try, 在这之后我会尝试,

% git push heroku master

(Optional) I believe the rediscloud addon is needed for some scripts. (可选)我认为某些脚本需要rediscloud插件。 You can add it with, 您可以添加它,

% heroku addons:create rediscloud

Then watch the logs heroku logs and see what happens. 然后查看日志heroku logs ,看看会发生什么。

There is a good deployment guide in hubot/deploying/heroku.md hubot / deploying / heroku.md中有一个很好的部署指南

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM