When I run cap production deploy I get cannot create directory ‘/var/www/application/repo’: Permission denied.
cap production deploy
cannot create directory ‘/var/www/application/repo’: Permission denied
So far I\'ve created deploy user
Credit to Bob Roberts.
I think this should be an answer as its easy to miss your comment. I know I missed it few times.
sudo chown -R deploy:deploy /var/www/
or whatever your username is
sudo chown -R username:username /var/www/