So this is my problem. I used Capistrano to deploy my Rails 3 application on an Ubuntu server with Phusion Passenger 3 installed. Everything should have worked fine, but I kept getting this error message.
Could not find Gemfile in / var / www / rails / releases / 20100916074325. (Bundler :: GemfileNotFound)
The directory in the error message (which I added for clarification) exists on the system as well as the Gemfile. Under the error message, the stack trace showed that the error was being thrown inside
/usr/lib/ruby/gems/1.8/gems/bundler-1.0.0/lib/bundler/shared_helpers.rb
So, I went there and added outputs to check the existence of directories on this path, and each of them returns false to the end to "www". I am untrusted.
Why can't the Bundler working under the Passenger find these ways? What can I do to solve this problem? (I am about to drop the Passenger at this moment.)
source
share