Capistrano deploy_symlink error

This is my first deployment. I made a cap deploy:setupthat worked great.

Then, when I try to execute cap deploy:update, I run error messages. Something along the lines

rm: cannot remove `/var/www/app_name/current': Is a directory

Here are my permissions for files and files.

http://pastie.org/1189919

In general, what are best practices for users and deployment permissions? Should I use root or create another user. Should another user need accurate permissions?

thank

+3
source share
3 answers

Are directories created in /var/www/app_name, or were they created by capistrano?

, , /var/www/app_name/current - /var/www/app_name/releases/. , capistrano /var/www/app_name/releases/ /var/www/app_name/current.

, , /var/www/app_name/current ( , ) /var/www/app_name/current /var/www/app_name/releases/, cap deploy. ( , ).

, , root. ( ), ( , , , /var/www/app_name.

+6

, cap deploy cap deploy:migrations, cap deploy:update.

0

. , , script.

, - github , , , , .

Capistrano , , ? , , , , , , . , .

, Capistrano script . , , .

0

Source: https://habr.com/ru/post/1767256/


All Articles