Last active
December 20, 2019 02:48
-
-
Save mabasic/5d114addbeb1422161de to your computer and use it in GitHub Desktop.
Envoy common features
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' => '[email protected] -p 1234']) | |
@setup | |
$path = "/path/to/site"; | |
@endsetup | |
@task('down') | |
cd {{ $path }} | |
php artisan down | |
@endtask | |
@task('git') | |
cd {{ $path }} | |
git pull origin | |
@endtask | |
@task('composer') | |
cd {{ $path }} | |
composer install --prefer-dist --no-interaction --no-dev | |
@endtask | |
@task('migrate') | |
cd {{ $path }} | |
php artisan migrate --force | |
@endtask | |
@task('cache') | |
cd {{ $path }} | |
php artisan cache:clear | |
@endtask | |
@task('routes') | |
cd {{ $path }} | |
php artisan route:cache | |
@endtask | |
@task('up') | |
cd {{ $path }} | |
php artisan up | |
@endtask | |
@story('deploy') | |
down | |
git | |
composer | |
migrate | |
cache | |
routes | |
up | |
@endstory |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment