sudo: no tty present and no askpass program specifiedas my error for this command
sudo -u root -i bash -c 'cd /myproj-ui/development
✈ Running default:development ✈ Connecting to "my-server.com" ✈ Executing remote task on my-server.com my-server.com $ sudo -u root -i bash -c 'cd /myproj-ui/development' my-server.com > sudo: no tty present and no askpass program specified
wwwuser that you use for the sudo commands. Would you be able to share how you set up that user and what groups they're in. Do they have to be in the sudo group?
deployand just do everything within the home directory of the deploy user so that I don't need sudo access for anything and that's working ok. I don't think this is anything to do with your library, just my lack of knowledge with setting up users/permissions on unix
wwwwould be the one which basically owns the whole fancy and the node processes, but no direct ssh access should be granted to him. If you have a team it comes handy to just create an account for each user and grant access to them for sudoing as the true owner of the processes.
deployfor example. But there are many ways to achieve this.