cant git push heroku master - buildpacks

793 views Asked by At

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 ?

How can i resolve this, and is it actually the right steps towards deploying hubot ?

1

There are 1 answers

4
HParker On

The heroku build packs still use the detection script to identify the language in use. Since Hubot is not a java project and it looks like you are using the java build pack, I suspect the detection script failed.

To fix this, try removing the 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. You can add it with,

% heroku addons:create rediscloud

Then watch the logs heroku logs and see what happens.

There is a good deployment guide in hubot/deploying/heroku.md