简体   繁体   中英

Rails deployment on Site5

I'm trying to deploy my Rails 3 application to a Site 5 shared hosting using capistrano. I've encountered many little problems and solved them step by step, but this one is getting me nuts: When bundle install is executed by capistrano, i'm getting asked for a password, so I guess that bundle is trying to install my app gems globally in the shared hosting, root password then. This is capistrano asking me for root password, when I execute cap deploy:migrations :

triggering after callbacks for `deploy:update_code'
  * executing `bundle_install'
  * executing "cd /home/domain/public_html/releases/20110406100442 && bundle install"
    servers: ["domain.com"]
    [domain.com] executing command
 ** [out :: domain.com] Fetching source index for http://rubygems.org/
 ** [out :: domain.com] Enter your password to install the bundled RubyGems to your system:

I changed the .gemrc file to include my local gems path, so I can install gems connected to the server via ssh. That works perfectly... I also changed the GEM_PATH value in my deploy.rb file, but it still doesn't work:

default_environment['GEM_PATH']='/home/domain/.gem:/usr/lib/ruby/gems/1.8'

Any ideas? Getting nuts over here...

Thanks!!

尝试捆绑安装 - 部署

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM