I am using https://laravel.com/docs/5.4/envoy as a deployment tool. In the Envoy.blade.php, I have command that requires sudo access for example:-
chmod 777 -R storage/
chmod 777 -R bootstrap/cache
These commands fails with an error saying operation not permitted. How can we resolve this?
To run those commands as sudo try the following:
Obviously you'll need to pass the sudo password into the envoy run command.
Tested on Ubuntu server 16.04 & 17.04