Skip to content

Instantly share code, notes, and snippets.

@Yazan-Stash
Created August 13, 2018 19:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Yazan-Stash/bced4c0929a07fe3881940f0f4a1b37f to your computer and use it in GitHub Desktop.
Save Yazan-Stash/bced4c0929a07fe3881940f0f4a1b37f to your computer and use it in GitHub Desktop.
An example Envoy deployment script.
@servers(['web' => ['deployment-server@server-ip-address']])
@task('production', ['on' => 'web'])
cd /path/to/your/project/on/server
git checkout origin master
git pull origin master
composer install
php artisan migrate --force
php artisan optimize
chown -R USER:GROUP .
sudo service supervisord restart
@endtask
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment