加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 运营中心 > Nginx > 正文

ruby-on-rails – 用Bundler安装Gems ==大问题

发布时间:2020-12-13 21:29:04 所属栏目:Nginx 来源:网络整理
导读:如果我运行捆绑安装,一切都通过.我重新启动nginx,当我访问该网站时,我看到乘客错误: git://github.com/spree/spree.git (at master) is not checked out. Please run `bundle install` (Bundler::GitError) 我的宝石文件: source 'http://rubygems.org'gem

如果我运行捆绑安装,一切都通过.我重新启动nginx,当我访问该网站时,我看到乘客错误:

git://github.com/spree/spree.git (at master) is not checked out. Please run `bundle install` (Bundler::GitError)

我的宝石文件:

source 'http://rubygems.org'

gem 'rails','3.0.3'
gem 'spree',:git => 'git://github.com/spree/spree.git' 
gem 'haml'
gem 'ruby-debug'
gem 'sqlite3',:require => 'sqlite3'
gem 'ckeditor','3.4.2.pre'
gem "aged_revolt",:require => "aged_revolt",:path => "aged_revolt"
gem "spree_easy_contact",'1.0.2',:path => "#{File.expand_path(__FILE__)}/../vendor/gems/spree_easy_contact-1.0.2"
gem "honeypot-captcha"

当我运行捆绑显示狂欢:

/home/shadyfront/.rvm/gems/ruby-1.8.7-p330@revolting_gems/bundler/gems/spree-44e4771f3a2a

任何想法如何/为什么这是发生和如何可以超越这个?

这是我的nginx.conf:

env               GEM_HOME=/home/shadyfront/.rvm/gems/ruby-1.8.7-p330@revolting_gems;
worker_processes  1;

events {
    worker_connections  1024;
}

http {
    access_log  /home/shadyfront/logs/user/access_revolting_age.log  combined;
    error_log   /home/shadyfront/logs/user/error_revolting_age.log   crit;

    include         mime.types;
    passenger_root  /home/shadyfront/webapps/revolting_age/gems/gems/passenger-2.2.15;
    passenger_ruby  /home/shadyfront/webapps/revolting_age/bin/ruby;
    sendfile        on;

    passenger_max_instances_per_app  1;
    rails_spawn_method               conservative;
    passenger_max_pool_size 2;

    server {
        listen             56943;
        passenger_enabled  on;
        root               /home/shadyfront/webapps/revolting_age/releases/20110215175319/public;
        server_name        localhost;
    }
}
最佳答案
在处理基于git的宝石时,这个问题似乎是乘客或捆绑器中的一个错误. This“解决方案”(我正在写供应商而不是供应商…)让我的乘客正在运行:

捆绑包
> bundle install –path vendor / cache

我认为http://www.ruby-forum.com/topic/213962是同样的问题,它还没有得到解决,据我所知.可能这个bug很快就会修复

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读