访问我的ROR Spree 应用程序时,出现以下错误:
Ruby (Rack) application could not be started
git://github.com/spree/spree_auth_devise.git (at 1-3-stable) is not checked out. Please run `bundle install` (Bundler::GitError)
我做了bundle install
并且已经安装了spree_auth_devise
。
bundle show将包含以下项目:
* spree (1.3.2)
* spree_api (1.3.2)
* spree_auth_devise (1.0.0 ccd6add)
* spree_cmd (1.3.2)
* spree_core (1.3.2)
* spree_dash (1.3.2)
* spree_gateway (1.2.0.rc2 556179a)
* spree_promo (1.3.2)
* spree_sample (1.3.2)
堆栈跟踪:
0 /usr/local/rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.5/lib/bundler/source/git.rb 177 in `rescue in load_spec_files'
1 /usr/local/rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.5/lib/bundler/source/git.rb 175 in `load_spec_files'
2 /usr/local/rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.5/lib/bundler/source/path.rb 86 in `local_specs'
3 /usr/local/rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.5/lib/bundler/source/git.rb 150 in `specs'
4 /usr/local/rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.5/lib/bundler/lazy_specification.rb 52 in `__materialize__'
5 /usr/local/rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.5/lib/bundler/spec_set.rb 88 in `block in materialize'
6 /usr/local/rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.5/lib/bundler/spec_set.rb 85 in `map!'
7 /usr/local/rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.5/lib/bundler/spec_set.rb 85 in `materialize'
8 /usr/local/rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.5/lib/bundler/definition.rb 114 in `specs'
9 /usr/local/rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.5/lib/bundler/definition.rb 159 in `specs_for'
10 /usr/local/rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.5/lib/bundler/definition.rb 148 in `requested_specs'
11 /usr/local/rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.5/lib/bundler/environment.rb 18 in `requested_specs'
12 /usr/local/rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.5/lib/bundler/runtime.rb 13 in `setup'
13 /usr/local/rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.5/lib/bundler.rb 120 in `setup'
知道可能出现什么问题吗?奇怪的是它可以与 rails服务器一起使用。只有在使用 apache2 和乘客
时才会出现此问题答案 0 :(得分:1)
我的应用程序似乎在rails服务器中正确运行,因为它使用了测试/开发宝石。
但是apache试图使用生产/部署宝石
我只需运行bundle install --deployment
来安装生产/部署gems