Octopress

编程入门 行业动态 更新时间:2024-10-27 22:23:44
本文介绍了Octopress - > Heroku error env:bundle:没有这样的文件或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我使用buildpack在Heroku上运行了一个Octopress博客( https:// github。 COM / jgarber / Heroku的-buildpack - 红宝石octopress )。直到几天前,它开始正常工作,当我开始在部署时发现下面的错误(本地一切工作正常)。我恢复了一个可用的git,并试图再次部署,但没有骰子。

env:bundle:没有这样的文件或目录错误。

以下是部署日志

----->删除0个匹配.slugignore模式的文件。 ----->获取定制git buildpack ... done -----> Octopress app检测到 ----->使用Ruby版本:ruby-2.0.0 ----->使用Bundler版本1.3.2安装依赖关系运行:bundle安装 - 无需开发:test --path vendor / bundle --binstubs vendor / bundle / bin --deployment 从http:/ /rubygems/ ....... 从rubygems/获取gem元数据。安装rake(10.1.1)安装RedCloth(4.2。 9)安装chunky_png(1.2.9)安装fast-stemmer(1.0.2)安装classifier(1.3.4)安装fssm(0.2.10)安装sass(3.2.13)安装指南针(0.12.2)安装directory_watcher(1.5.1)安装haml(3.1.8)安装kramdown(0.14 .2)安装液体(2.3.0)安装maruku(0.7.0)安装posix-spawn(0.3.8)安装yajl-ruby(1.1.0 )安装pygments.rb(0.3.7)安装jekyll(0.12.1)安装机架(1.5.2)安装机架保护(1.5.1)安装rdiscount(1.6.8)安装rubypants(0.2.0)安装sass-globbing (1.0.0)安装tilt(1.4.1)安装sinatra(1.4.4)安装stringex(1.4.0)使用bundler(1.3.2)您的套餐已完成!它已安装到./vendor/bundle 清理捆绑器缓存。 删除bundler(1.3.0.pre.5) ----->建立Octopress站点 env:bundle:没有这样的文件或目录 ----->发现过程类型 Procfile声明类型 - > (无)

sourcerubygems 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'结束

Gemfile.lock

GEM remote:rubygems/ 规格: RedCloth(4.2.9) chunky_png 1.2.9) classifier(1.3.3) fast-stemmer(> = 1.0.0)罗盘(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)分类器(〜> 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) ruby​​pants(0.2.0) sass(3.2.13) sass-globbing(1.0.0) sass(> = 3.1) sinatra(1.4.4) rack(〜> (1.4)机架保护(〜> 1.4) tilt(〜> 1.3,> = 1.3.4) strictgex(1.4.0) tilt .1) yajl-ruby(1.1.0) 平台红宝石 相关 RedCloth(〜> 4.2.9 )指南针(〜> 0.12.2) haml(〜> 3.1.7) jekyll(〜> 0.12)液体(〜> 2.3.0 ) pygments.rb(〜> 0.3.4) rake rb-fsevent(〜> 0.9) rdiscount(〜> 1.6.8)$ b $ (〜> 0.2.0) sass-globbing(〜> 1.0.0) sinatra(〜> 1.4.2) stringex(〜> 1.4.0 )

我上下搜寻过,但似乎没有任何效果。任何帮助将不胜感激。

解决方案

我删除并再次添加BUILDPACK_URL。

heroku配置:删除BUILDPACK_URL heroku配置:设置BUILDPACK_URL = https://github/nicholasmott/heroku-buildpack-octopress.git

然后创建一个包含内容的Procfile: web:bundle exec rackup config.ru -p $ PORT

I don' t知道哪些可以解决问题,但现在它可以工作。

我试过只需再次设置网址:Nothing。 冻结ruby版本:没有。 创建一个没有包的配置文件:没有。

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

I have an Octopress blog running on Heroku using a buildpack (github/jgarber/heroku-buildpack-ruby-octopress). It was working fine up until a few days ago, when I started getting the error below on deployment (everything works fine on local). I reverted to a working git and tried to deploy again but no dice.

env: bundle: no such file or directory error.

Here is the deployment log

-----> 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 rubygems/....... Fetching gem metadata from rubygems/.. 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 "rubygems" 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: rubygems/ 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)

I have searched up and down but nothing seems to work for me. Any help would be much appreciated.

解决方案

I removed and add the BUILDPACK_URL again.

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

And created a Procfile with content:

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

I don't know which resolves the problem, but now it works.

I tried Simply set the url again: Nothing. Freeze the ruby version: Nothing. Create a Profile without bundle: Nothing.

Then I removed the Buildpack and I got my site down. I added again the buildpack and I created a Procfile and after that it just runs :)

更多推荐

Octopress

本文发布于:2023-10-26 01:03:18,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Octopress

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!