ruby on rails - How to switch user permanently using capistrano -


using capistrano logged default user not have access privilege. need switch different user in remote 'deploy user' perform tasks.

below script

set :user, "sasi" set :group, "sasi"  set :switch_user   password = capistrano::cli.ui.ask "deployuser password:"   run "whoami"   run("su - 'deployuser'") |channel, stream, output|     channel.send_data("#{password}\n") if output   end end 

help me in switching different user permanently using capistrano.

i have no idea how capistrano can this. found answer hope you.

permanently switching user in capistrano 3 (separate authorization & deploy)


Comments

Popular posts from this blog

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

javascript - Using jquery append to add option values into a select element not working -

javascript - Restarting Supervisor and effect on FlaskSocketIO -