When using Envoy for the first time to deploy to production servers, there are quite a few steps to get it running correctly. These are the cliff notes that I use for getting Envoy running.
This file includes the descriptive tasks for deployment. Copy this file from an existing repository and make appropriate tweaks.
cd ~/Sites/account-name/repository-name/
composer global require "laravel/envoy=~1.0"
nano ~/.ssh/config
Host 10.100.180.21
User envoy
IdentityFile ~/.ssh/envoy
nano ~/.ssh/envoy
-----BEGIN RSA PRIVATE KEY-----
{REDACTED}
-----END RSA PRIVATE KEY-----
chmod 600 ~/.ssh/envoy
export PATH=$PATH:~/.composer/vendor/bin
Alternatively,
nano ~/.bash_profile
export PATH=~/bin:/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:~/.composer/vendor/bin:$PATH
source ~/.bash_profile
ssh [email protected]
cd /srv/www
chown -R envoy:www-data
cd ~/Sites/account-name/repository-name/
envoy run admin-prod-deploy
envoy run admin-prod-rollback