A
A
Anton Misyagin2015-11-26 18:57:56
Ruby on Rails
Anton Misyagin, 2015-11-26 18:57:56

How to deploy an application via Capistrano 3 to a linux server if access is denied?

Everything rustles, shuts up on the ln command - access is denied. Naryl that Capistrano 3 does not execute commands from the superuser.
Setting set :use_sudo, true doesn't help. If I go to the server and execute the same command manually, access is denied. I add sudo - voila, everything works. How to force capistrano 3 to act from the superuser?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
OnYourLips, 2015-11-26
@OnYourLips

Add to sudo command.
execute :sudo, "service php5-fpm restart"

S
Sergey, 2015-11-27
@mastedm

Doing something remotely using a superuser is generally not very good. Are you sure you can't do without sudo?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question