首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Octopress -> Heroku error env: bundle:没有这样的文件或目录

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

Stack Overflow用户
提问于 2014-01-10 02:00:38
回答 3查看 592关注 0票数 1

我有一个章鱼博客运行在Heroku使用一个内置包(https://github.com/jgarber/heroku-buildpack-ruby-octopress)。直到几天前,我才开始在部署时得到下面的错误(在本地,一切都很好)。我回到了一个工作的git,并试图再次部署,但没有骰子。

代码语言:javascript
复制
env: bundle: no such file or directory error. 

下面是部署日志

代码语言:javascript
复制
-----> 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

代码语言:javascript
复制
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

代码语言:javascript
复制
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)

我到处搜寻,但似乎没有什么对我有用。任何帮助都将不胜感激。

EN

回答 3

Stack Overflow用户

回答已采纳

发布于 2014-01-15 13:08:21

我删除并再次添加了BUILDPACK_URL。

代码语言:javascript
复制
heroku config:remove BUILDPACK_URL
heroku config:set BUILDPACK_URL=https://github.com/nicholasmott/heroku-buildpack-octopress.git

并创建了一个包含以下内容的Procfile:

代码语言:javascript
复制
web: bundle exec rackup config.ru -p $PORT

我不知道谁能解决这个问题,但现在起作用了。

我试着重新设置网址:没什么。冻结红宝石版本:没有。创建一个没有包的配置文件: Nothing。

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

票数 2
EN

Stack Overflow用户

发布于 2014-01-11 14:27:19

尝试使用更新版本的buildpack创建另一个应用程序和Git远程。它考虑到Heroku希望您在Gemfile中指定Ruby版本的方式,这是Jason编写他最初的buildpack之后的新版本。

票数 0
EN

Stack Overflow用户

发布于 2014-01-21 16:23:11

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

我不得不将我的heroku退回到“股票”heroku buildpack。然后一切又开始运作了。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/21034901

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档