Passenger do not find mail gem
My app is working with no problems in my local machine, but when I upload it to my server, I get this error:
Could not find mail-2.2.14 in any of the sources (Bundler::GemNotFound)
I checked with gem list and mail-2.2.14 is installed, I don't know what is happening. I uploaded another app to the same server and it worked 开发者_JAVA百科fine.
Anyone can help me ?
EDIT
I Solved the problem running
bundle update mail
Check which ruby your passenger is using.
- If you are using nginx, go to nginx.conf and check what is the value for passenger_ruby property
- If you are using apache, go to httpd.conf and check what is the value for PassengerRuby property
Make sure that is the same with the value with the ruby from which ruby
command.
If you are using bundler, make sure you already run the bundle update
command.
You could try checking in the gem in your vendor/cache folder.
bundle install
should cache the gems locally and install from them if they are present.
Do you have a full stack trace?
精彩评论