Skip to content

Instantly share code, notes, and snippets.

@psgganesh
Last active February 12, 2018 04:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save psgganesh/1a5b67f49b7045d564d2779a747d7ad5 to your computer and use it in GitHub Desktop.
Save psgganesh/1a5b67f49b7045d564d2779a747d7ad5 to your computer and use it in GitHub Desktop.
Use laravel / envoy for smoother deployments on forge servers

Adding envoy globally using

composer global require laravel/envoy

Update ~/.bashrc file to enable envoy on CLI

echo 'export PATH="$PATH:/home/forge/.config/composer/vendor/bin"' >> ~/.bashrc
source ~/.bashrc

Run envoy

If you think your server supports direct cli run after adding the above command you can do
envoy run < custom envoy task > 

- OR -

Call it with below command
/home/forge/.config/composer/vendor/bin/envoy run < custom envoy task >
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment