Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm attempting to deploy a Rails 3.1 application to an Ubuntu 11.04 server running nginx-1.0.0 and passenger-3.0.7

I have a system-level RVM install at /usr/local/rvm/gems/ruby-1.9.2-p180

My nginx.conf looks like:

http {
    passenger_root /usr/local/rvm/gems/ruby-1.9.2-p180/gems/passenger-3.0.7;
    passenger_ruby /usr/local/rvm/wrappers/ruby-1.9.2-p180/ruby;

    # ...

    server {
        listen 80;
        server_name my-domain.com;
        root /srv/www/my_project/current/public;
        passenger_enabled on;
        rails_env production;
    }
}

The problem is that I have two gems in my Gemfile that point to git repos. Bundler says that they are installed, they are present in RVM's gem directory, but Passenger throws an error:

git@my-domain.com:my-gem (at master) is not checked out. Please run `bundle install` (Bundler::GitError)

Running rails console from the deployment directory works fine. What am I missing?

share|improve this question

Changed deployment script to use bundle install --deployment, the --deployment option installs gems into vendor/bundle instead of the system directory.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.