Mr_LinDowsMac
Mr_LinDowsMac

Reputation: 2702

Can't install any ruby with RVM-Capistrano

I recently installed the gem rvm-capistrano in order to deploy in my server. First, I tried to run cap deploy:setup. It seems that installed RVM, but for some reasons (permissions or something else), it couldn't install REE:

Warning:
*** [err :: myserver.com] Failed to create the file ruby-enterprise-1.8.7-2012.02.tar.gz
[...]

There was an error, please check /usr/local/rvm/log//*.log. Next we'll try to fetch via http.
 ** [out :: myserver.com] Trying ftp:// URL instead.

I didn't include more because is irrelevant.

Obviously in deploy.rb sudo options is set as 'root'.

Upvotes: 0

Views: 154

Answers (1)

user1686997
user1686997

Reputation: 11

adduser #{user} rvm

Fixed it for me. Where #{user} is the name of your cap deploy user.

Upvotes: 1

Related Questions