2013-10-11 49 views
0

我需要Heroku的拒絕我的自定義buildpack爲的Ruby-on-軌乳膠

source file -> latex -> pdf file 

添加管道,我的工作就一個Rails應用程序和部署在Heroku上(http://vschool.herokuapp.com)。我試過以下的

https://github.com/holiture/heroku-buildpack-tex 

的意見,並使用mutipacks,例如進一步的建議,與內容

git://github.com/heroku/heroku-buildpack-python.git 
git://github.com/holiture/heroku-buildpack-tex.git 
git://github.com/heroku/heroku-buildpack-ruby.git 

這裏創建一個文件.buildpacks後做

$ heroku config:add BUILDPACK_URL=https://github.com/ddollar/heroku-buildpack-multi.git 

當我按下時會發生什麼:

$ git push heroku master 
Counting objects: 11, done. 
Delta compression using up to 4 threads. 
Compressing objects: 100% (6/6), done. 
Writing objects: 100% (6/6), 480 bytes | 0 bytes/s, done. 
Total 6 (delta 5), reused 0 (delta 0) 

-----> Fetching custom git buildpack... done 

!  Push rejected, no Cedar-supported app detected 

To [email protected]:vschool.git 
! [remote rejected] master -> master (pre-receive hook declined) 
error: failed to push some refs to '[email protected]:vschool.git' 

這個我的應用程序後,在該區,我必須這樣做:

$ heroku config:unset BUILDPACK_URL 

之後,我回到工作狀態。

我一定不知道如何安裝多個buildpack。任何意見將不勝感激。

+0

你在你的應用中使用Python嗎?您的.buildpack文件包含Python buildpack。 –

+0

現在不使用python(感謝您的信息!)。關鍵需求是pdflatex –

回答

0

嘗試更換您的.buildpack

git://github.com/heroku/heroku-buildpack-ruby.git 
git://github.com/holiture/heroku-buildpack-tex.git 

看來,Heroku上可能會尋找一個Python-specific file(requirements.txt或setup.py),當它是構建您的應用程序,而不是一個Ruby特定的文件( Gemfile)。

+0

嗨,非常感謝。我試過了,但得到了同樣的錯誤: '! [遠程拒絕]主 - >主(預接收鉤拒絕)' '錯誤:未能推動一些裁判'[email protected]:vschool.git'' –

+0

這個錯誤看起來像你的git倉庫的問題。你使用'git commit --amend'嗎?有沒有其他人一直在服務器上工作。如果只是你,運行'git push heroku master --force'強制更新Heroku的副本。如果其他人推動代碼,你應該把他們的變化'git pull heroku master'然後'git push heroku master'。 –

+0

這只是我。我會嘗試 - 力量。謝謝! –