Capistrano mkdir permission denied

后端 未结 3 1145
半阙折子戏
半阙折子戏 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 05:57

    Had the same error here, following the good tutorial of GoRails "Deploy Ruby on Rails To Production in 2019", where he create a user "deploy" and set to deploy the app in "home/deploy". Don't forget that you have to use the username created on the server. So deploy's directory is "home/USERNAME".

提交回复
热议问题