2014-01-10 55 views
1

我有一個使用buildpack在Heroku上運行的Octopress博客(https://github.com/jgarber/heroku-buildpack-ruby-octopress)。直到幾天前,它開始正常工作,當我開始在部署時發現下面的錯誤(本地一切工作正常)。我恢復了一個可用的git,並試圖再次部署,但沒有骰子。Octopress - > Heroku error env:bundle:沒有這樣的文件或目錄

env: bundle: no such file or directory error. 

這裏是部署日誌

-----> Deleting 0 files matching .slugignore patterns. 
-----> Fetching custom git buildpack... done 
-----> Octopress app detected 
-----> Using Ruby version: ruby-2.0.0 
-----> Installing dependencies using Bundler version 1.3.2 
     Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin --deployment 
     Fetching gem metadata from http://rubygems.org/....... 
     Fetching gem metadata from http://rubygems.org/.. 
     Installing rake (10.1.1) 
     Installing RedCloth (4.2.9) 
     Installing chunky_png (1.2.9) 
     Installing fast-stemmer (1.0.2) 
     Installing classifier (1.3.4) 
     Installing fssm (0.2.10) 
     Installing sass (3.2.13) 
     Installing compass (0.12.2) 
     Installing directory_watcher (1.5.1) 
     Installing haml (3.1.8) 
     Installing kramdown (0.14.2) 
     Installing liquid (2.3.0) 
     Installing maruku (0.7.0) 
     Installing posix-spawn (0.3.8) 
     Installing yajl-ruby (1.1.0) 
     Installing pygments.rb (0.3.7) 
     Installing jekyll (0.12.1) 
     Installing rack (1.5.2) 
     Installing rack-protection (1.5.1) 
     Installing rdiscount (1.6.8) 
     Installing rubypants (0.2.0) 
     Installing sass-globbing (1.0.0) 
     Installing tilt (1.4.1) 
     Installing sinatra (1.4.4) 
     Installing stringex (1.4.0) 
     Using bundler (1.3.2) 
     Your bundle is complete! It was installed into ./vendor/bundle 
     Cleaning up the bundler cache. 
     Removing bundler (1.3.0.pre.5) 
-----> Building Octopress site 
     env: bundle: No such file or directory 
-----> Discovering process types 
     Procfile declares types -> (none) 

的Gemfile

source "http://rubygems.org" 

gem 'rake' 
gem 'jekyll', '~> 0.12' 
gem 'rdiscount', '~> 1.6.8' 
gem 'pygments.rb', '~> 0.3.4' 
gem 'RedCloth', '~> 4.2.9' 
gem 'haml', '~> 3.1.7' 
gem 'compass', '~> 0.12.2' 
gem 'sass-globbing', '~> 1.0.0' 
gem 'rubypants', '~> 0.2.0' 
gem 'stringex', '~> 1.4.0' 
gem 'liquid', '~> 2.3.0' 
gem 'sinatra', '~> 1.4.2' 

group :development do 
    gem 'rb-fsevent', '~> 0.9' 
end 

Gemfile.lock的

GEM 
remote: http://rubygems.org/ 
specs: 
    RedCloth (4.2.9) 
    chunky_png (1.2.9) 
    classifier (1.3.3) 
    fast-stemmer (>= 1.0.0) 
    compass (0.12.2) 
    chunky_png (~> 1.2) 
    fssm (>= 0.2.7) 
    sass (~> 3.1) 
    directory_watcher (1.5.1) 
    fast-stemmer (1.0.2) 
    fssm (0.2.10) 
    haml (3.1.8) 
    jekyll (0.12.1) 
    classifier (~> 1.3) 
    directory_watcher (~> 1.1) 
    kramdown (~> 0.14) 
    liquid (~> 2.3) 
    maruku (~> 0.5) 
    pygments.rb (~> 0.3.2) 
    kramdown (0.14.2) 
    liquid (2.3.0) 
    maruku (0.7.0) 
    posix-spawn (0.3.8) 
    pygments.rb (0.3.7) 
    posix-spawn (~> 0.3.6) 
    yajl-ruby (~> 1.1.0) 
    rack (1.5.2) 
    rack-protection (1.5.1) 
    rack 
    rake (10.1.1) 
    rb-fsevent (0.9.3) 
    rdiscount (1.6.8) 
    rubypants (0.2.0) 
    sass (3.2.13) 
    sass-globbing (1.0.0) 
    sass (>= 3.1) 
    sinatra (1.4.4) 
    rack (~> 1.4) 
    rack-protection (~> 1.4) 
    tilt (~> 1.3, >= 1.3.4) 
    stringex (1.4.0) 
    tilt (1.4.1) 
    yajl-ruby (1.1.0) 

    PLATFORMS 
    ruby 

    DEPENDENCIES 
    RedCloth (~> 4.2.9) 
    compass (~> 0.12.2) 
    haml (~> 3.1.7) 
    jekyll (~> 0.12) 
    liquid (~> 2.3.0) 
    pygments.rb (~> 0.3.4) 
    rake 
    rb-fsevent (~> 0.9) 
    rdiscount (~> 1.6.8) 
    rubypants (~> 0.2.0) 
    sass-globbing (~> 1.0.0) 
    sinatra (~> 1.4.2) 
    stringex (~> 1.4.0) 

我已搜查向上和向下,但似乎沒有爲我工作。任何幫助將非常感激。

回答

2

我刪除並再次添加BUILDPACK_URL。

heroku config:remove BUILDPACK_URL 
heroku config:set BUILDPACK_URL=https://github.com/nicholasmott/heroku-buildpack-octopress.git 

並開創了Procfile與內容:

web: bundle exec rackup config.ru -p $PORT 

我不知道它解決了問題,但現在它的工作原理。

我試過 只需再次設置網址:無。 凍結ruby版本:沒有。 無捆綁創建配置文件:無。

然後我刪除了Buildpack,我把我的網站關閉了。我再次添加了buildpack,並創建了一個Procfile,之後它只是運行:)

0

嘗試使用updated version of the buildpack創建另一個應用程序和Git Remote。它考慮到了Heroku希望你在Gemfile中指定Ruby版本的方式,這是自從Jason寫了他的原始buildpack之後的新版本。

0

當我更新我的寶石時,我在我的jekyll站點上發生了類似的事情。

我不得不將我的heroku回滾到「股票」heroku buildpack。然後一切又開始工作。

相關問題