为什么nginx +乘客无法启动并将其打印到error.log中?
Could not find addressable-2.3.6 in any of the sources (Bundler::GemNotFound) /usr/local/share/gems/gems/bundler-1.7.8/lib/bundler/spec_set.rb:92...
我的RoR应用程序安装在/ var / www / html /中,并从该目录运行bin / bundle:
$ bin/bundle install --deployment Using addressable 2.3.6... It was installed into ./vendor/bundle
该gem是根据供应商/软件包:
$ ls vendor/bundle/ruby/1.9.1/gems/ | grep address addressable-2.3.6
Gemfile.lock的一部分:
GEM remote: https://rubygems.org/ specs: addressable (2.3.6)...
/etc/nginx/conf.d/passenger.conf中的Nginx乘客configuration:
passenger_root /usr/local/share/gems/gems/passenger-4.0.53/; passenger_ruby /usr/bin/ruby; ...
/etc/nginx/sites-enabled/*.conf中的nginx站点configuration
passenger_enabled on; passenger_set_cgi_param RAILS_ENV production;
我尝试设置passenger_set_cgi_param GEM_PATH /var/www/html/vendor/bundle/ruby/1.9.1/gems/:/usr/local/share/gems/gems/; 但后来我得到这个错误:
Message from application: cannot load such file -- bundler/setup (LoadError) /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'...