Skip to content

Instantly share code, notes, and snippets.

@mabasic
Last active Dec 20, 2019
Embed
What would you like to do?
Envoy common features
@servers(['web' => 'user@yourdomain.com -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