Created
August 13, 2018 19:15
-
-
Save Yazan-Stash/bced4c0929a07fe3881940f0f4a1b37f to your computer and use it in GitHub Desktop.
An example Envoy deployment script.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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