开发者

Rails 3.0.5: Bundler says it'd be using Rack1.2.2 but Passenger casts a GemNotFound Error

开发者 https://www.devze.com 2023-02-20 12:34 出处:网络
I\'m using Passenger with Rails 3.0.5 and Ruby 1.8.7. It worked fine until some changes I can开发者_运维技巧not remember.

I'm using Passenger with Rails 3.0.5 and Ruby 1.8.7.

It worked fine until some changes I can开发者_运维技巧not remember.

I hit bundle install and it said it'd be using Rack 1.2.2 but Bundler still returns GemNotFound Rack 1.2.2.

As I hit find / -name "rack" it shows all the dirs Rack 1.2.2 is installed to and seems that it is installed.

I explicitly demand the Gem Rack 1.2.2 in my Gemfile, also this doesn't help.

Entering the the gemdir by bundle config path /dir/to/gems doesn't help as well.

Who can give me right advice or fix this problem?

Thanks,

Yours,

Joern.


your passenger uses another installation of Ruby. set it manualy in NGINX_FOLDER/conf/nginx.conf

http {
  passenger_ruby /path/to/you/ruby/folder;
  ...
}

to know your ruby folder use this command:

which ruby

UPD

For Apache (you can read it in official passenger apache module documentation) http://www.modrails.com/documentation/Users%20guide%20Apache.html#_unloading_disabling_phusion_passenger_from_apache_without_uninstalling_it. Just set:

PassengerRuby /path/to/your/ruby/folder
0

精彩评论

暂无评论...
验证码 换一张
取 消