2010-06-27 30 views
2

我還沒有使用Ruby。我不知道什麼寶石。但我知道如何安裝它們並做類似的基本事情。Push Rack-Jekyll應用程序到Heroku

我聽說過Jekyll,並決定用Heroku開始自己的創作。我發現了可以在Heroku上運行的Rack-Jekyll。

我按照Jekyll的說明創建了我的網站,它在我的系統上運行良好。然後我做了我被告知要在http://github.com/bry4n/rack-jekyll#readme中做的事情。但是,當我把它推到Heroku的,我得到一個錯誤:

---> Heroku received push 
---> Rack app detected 
---> Installing rack-jekyll from http://rubygems.org 
    ERROR: could not find gem "rack-jekyll" locally or in a repository 

見狀,我下載了機架jekyll.gem文件,並將其提交到repsitory並試圖上傳。即使這樣也行不通。你能準確地告訴我該怎麼做嗎?

回答

3

更新(HT安德魯):使用Heroku的Bundler support

創建Gemfile像這樣

source "http://rubygems.org" 
gem "rack-jekyll" 
+1

這個答案是有點老了。 '.gems'清單方法已被棄用。只需使用[Bundler](http://devcenter.heroku.com/articles/bundler)並創建一個'Gemfile' – Andrew 2011-12-12 17:50:49