2016-11-13 147 views
0

簡而言之,這就是我所得到的;cant git push heroku master - buildpacks

[email protected]:/opt/hubot/bin$ heroku buildpacks 
=== young-everglades-12415 Buildpack URL 
heroku/java 
[email protected]:/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' 
[email protected]:/opt/hubot/bin$ 

雖然我確實在app上設置了一個buildpack git push失敗,因爲沒有檢測到buildpack?

我該如何解決這個問題,它實際上是部署hubot的正確步驟?

回答

1

heroku構建包仍然使用detection script來標識正在使用的語言。由於Hubot不是Java項目,看起來您正在使用java構建包,所以我懷疑檢測腳本失敗。

要解決此問題,請嘗試移除構建包。

% heroku buildpacks:remove heroku/java 

這個我會嘗試後,

% git push heroku master 

(可選),我相信需要一段腳本rediscloud插件。你可以添加它,

% heroku addons:create rediscloud 

然後看日誌heroku logs,看看會發生什麼。

有一個在hubot/deploying/heroku.md

+0

一個很好的部署指南如你所說,我沒有刪除buildpacks,並試圖建立rediscloud但不幸的是我面臨的另一個困境是驗證。每次我嘗試使用該命令來創建reidcloud甚至從瀏覽器heroku dash bord插件我得到請求來驗證我的帳戶與信用卡?有沒有解決的辦法 ? – JanusJanus

+0

對不起,我不知道。也許跳過這一步,看看你是否可以在沒有它的情況下部署它? – HParker

+0

仍然收到相同的錯誤沒有默認語言。檢測到? – JanusJanus