如果我运行捆绑安装,一切都通过.我重新启动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“解决方案”(我正在写供应商而不是供应商…)让我的乘客正在运行:
原文链接:https://www.f2er.com/nginx/434648.html捆绑包
> bundle install –path vendor / cache
我认为http://www.ruby-forum.com/topic/213962是同样的问题,它还没有得到解决,据我所知.可能这个bug很快就会修复