deployer
deployer copied to clipboard
Provision:website - Wrong remote user
- 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.