【问题标题】:Octopress --> Heroku error env: bundle: no such file or directoryOctopress --> Heroku 错误环境:捆绑:没有这样的文件或目录
【发布时间】:2014-01-10 02:00:38
【问题描述】:

我有一个使用 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)

宝石文件

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)

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

【问题讨论】:

    标签: heroku bundler octopress


    【解决方案1】:

    我删除并再次添加了 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
    

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

    我试过了 只需再次设置 url:Nothing。 冻结红宝石版本:没有。 创建没有捆绑包的配置文件:没有。

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

    【讨论】:

      【解决方案2】:

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

      【讨论】:

        【解决方案3】:

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

        我不得不将我的 heroku 回滚到“库存”heroku buildpack。然后一切又开始工作了。

        【讨论】:

          猜你喜欢
          • 2021-08-23
          • 1970-01-01
          • 2021-03-30
          • 2013-11-21
          • 2019-09-07
          • 2016-05-31
          • 2023-03-29
          • 2021-10-31
          • 1970-01-01
          相关资源
          最近更新 更多