Errors using Capistrano
“** [out :: myserver] deploy is not in the sudoers file. This incident will be reported.” — Solution is here.
Edit the sudoers fileThis step must be carried out as the admin user of your accelerator (or another user allowed to call sudo visudo) otherwise you won't be allowed to run the command. To add a user to sudoers file, you must use visudo. visudo emulates VI and is used to prevent errors when editing the sudoers file:sudo visudoIf you can't use the arrows, as reported by some people on OS X, you can use other keys (h, j, k, l; learn more here: http://hea-www.harvard.edu/~fine/Tech/vi.html), or use an alternate terminal like iTerm, which has been reported to work.How to use visudo
1. Use the arrow keys to navigate the cursor to the spot where you want to start typing
2. Enter “insert mode” by pressing “i”
3. When you are done entering text, hit esc to go back to “command mode”
4. Write the file back to disk by typing :w followed by hitting enter.
5. Exit visudo with :q followed by enter.
Text entered for my user, right below “root ALL=(ALL) ALL”:newuserforvirtualserver ALL=(ALL) ALL
Also, I had errors where I had to modify the permissions — getting a permissions denied.
** [myserver :: out] fatal: could not create work tree dir ‘var/www/myapp/shared/cached-copy’: Permission denied.
The solution was to change the permissions on www to 765.


