Capistrano mkdir permission denied

后端 未结 3 1102
半阙折子戏
半阙折子戏 2021-01-31 05:43

When I run cap production deploy I get cannot create directory ‘/var/www/application/repo’: Permission denied.

So far I\'ve created deploy user

3条回答
  •  盖世英雄少女心
    2021-01-31 06:04

    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/
    

提交回复
热议问题