很简单,这就是我所得到的;
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$
虽然我确实在app git push上设置了buildpack,但是没有检测到buildpack?
我如何解决这个问题,它实际上是部署hubot的正确步骤吗?
答案 0 :(得分:1)
heroku构建包仍然使用detection script来识别正在使用的语言。由于Hubot不是一个java项目,看起来你正在使用java build pack,我怀疑检测脚本失败了。
要解决此问题,请尝试删除buildpack。
% heroku buildpacks:remove heroku/java
在此之后我会尝试,
% git push heroku master
(可选)我相信某些脚本需要rediscloud
个插件。您可以使用
% heroku addons:create rediscloud
然后查看日志heroku logs
,看看会发生什么。