In my staging.rb file i need to connect with "ubuntu" username

server '**.**.****.**', user: 'ubuntu',  roles: %w{web app db}

In my deploy.rb

set :deploy_to, -> { "/var/www/myuser/myuser.com/capi" }

Server

var/www/myuser/myuser.com# ls -la
total 32
drwxrwx--- 8 myuser myuser 4096 Jul  9 14:54 .
drwxrwx--- 5 myuser myuser 4096 Feb 26 17:18 ..
drwxrwx--- 7 myuser myuser 4096 May  7 13:48 beta
drwxr-xr-x 2 myuser myuser 4096 Jul  9 14:54 capi
drwxrwx--- 9 myuser myuser 4096 May  8 20:15 quiz
drwxrwx--- 2 myuser myuser 4096 May  8 20:10 scoreboards
drwxrwx--- 2 myuser myuser 4096 May  8 20:10 stats
drwxrwx--- 7 myuser myuser 4096 Jul  2 14:58 www

when i do "bundle exec cap staging deploy" i have this error

 mkdir stderr: mkdir: cannot create directory '/var/www/myuser': Permission 
denied
 mkdir: cannot create directory '/var/www/myuser': Permission denied

How i can change user with capistrano?

-- 
You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/capistrano/50bfbad0-d256-4528-a924-51b2d1a9d9cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to