deployer icon indicating copy to clipboard operation
deployer copied to clipboard

Provision:website - Wrong remote user

Open fschirinzi opened this issue 3 years ago • 0 comments

  • Deployer version: 7.0.0-rc.8
  • Deployment OS: Mac OS 12.4 - M1

Default deploy.php with remote_user = ubuntu

Error:

task provision:website
[production]  error  ....
[production] run [ -d /home/deployer/app ] || mkdir /home/deployer/app
[production] Please login as the user "ubuntu" rather than the user "root".

The error occurs because the remote user is set statically. I think this was done because of the command run("echo 'import $deployPath/Caddyfile' >> /etc/caddy/Caddyfile");. The mentioned command will fail if the user is not root. See my pull request, which fixes this.

fschirinzi avatar May 30 '22 11:05 fschirinzi