Octopress - > Heroku错误env:bundle:没有这样的文件或目录

时间:2014-01-10 02:00:38

标签: heroku bundler octopress

我使用buildpack(https://github.com/jgarber/heroku-buildpack-ruby-octopress)在Heroku上运行了一个Octopress博客。它在几天前工作正常,当我开始在部署时得到以下错误(一切正常在本地工作)。我恢复了工作的git并尝试重新部署,但没有骰子。

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)

我上下搜索但似乎没有什么对我有用。任何帮助将不胜感激。

3 个答案:

答案 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

我不知道哪个可以解决问题,但现在可以解决了。

我试过了 只需再次设置网址:没有。 冻结红宝石版本:没什么。 创建没有包的配置文件:没有。

然后我删除了Buildpack并将网站关闭了。我再次添加了buildpack并创建了一个Procfile,之后它就运行了:)

答案 1 :(得分:0)

尝试使用updated version of the buildpack创建另一个应用程序和Git远程。它考虑了Heroku希望你在Gemfile中指定Ruby版本的方式,这是Jason编写原始buildpack以来的新版本。

答案 2 :(得分:0)

当我更新我的宝石时,我在jekyll网站上发生了类似的事情。

我不得不将我的heroku回滚到“stock”heroku buildpack。然后一切都开始恢复了。

相关问题