Por que o nginx + passenger não inicia e imprime isso em 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...
Meu aplicativo RoR está instalado em / var / www / html / e executei bin / bundle desse diretório:
$ bin/bundle install --deployment
Using addressable 2.3.6...
It was installed into ./vendor/bundle
A gema está no fornecedor / pacote:
$ ls vendor/bundle/ruby/1.9.1/gems/ | grep address
addressable-2.3.6
Parte do Gemfile.lock:
GEM
remote: https://rubygems.org/
specs:
addressable (2.3.6)...
Configuração do passageiro Nginx em /etc/nginx/conf.d/passenger.conf:
passenger_root /usr/local/share/gems/gems/passenger-4.0.53/;
passenger_ruby /usr/bin/ruby; ...
configuração do site nginx em / etc / nginx / sites-enabled / *. conf
passenger_enabled on;
passenger_set_cgi_param RAILS_ENV production;
Eu tentei definir passenger_set_cgi_param GEM_PATH /var/www/html/vendor/bundle/ruby/1.9.1/gems/:/usr/local/share/gems/gems/;
, mas recebi este erro:
Message from application: cannot load such file -- bundler/setup (LoadError)
/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in 'require'...
Tags ruby-on-rails