Last active
August 29, 2015 14:01
-
-
Save joecohens/6f4a63badaee101054e7 to your computer and use it in GitHub Desktop.
Envoy
This file contains hidden or 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(['staging' => 'server-dev', 'production' => 'server-prod']) | |
@setup | |
$branch = isset($branch) ? $branch : "master"; | |
@endsetup | |
@macro('deploy') | |
update | |
install | |
@endmacro | |
@macro('deploy-migrate') | |
deploy | |
migrate | |
@endmacro | |
@macro('deploy-refresh') | |
deploy | |
refresh | |
@endmacro | |
@task('update', ['on' => $env]) | |
cd /var/www/project | |
git pull origin {{ $branch }} | |
@endtask | |
@task('install', ['on' => $env]) | |
cd /var/www/project | |
composer install --no-interaction --no-dev --prefer-dist | |
@endtask | |
@task('migrate', ['on' => $env]) | |
cd /var/www/project | |
php artisan migrate --env="{{ $env }}" | |
@endtask | |
@task('refresh', ['on' => $env]) | |
cd /var/www/project | |
php artisan migrate:refresh --env="{{ $env }}" | |
@endtask | |
@task('down', ['on' => $env]) | |
cd /var/www/project | |
php artisan down | |
@endtask | |
@task('up', ['on' => $env]) | |
cd /var/www/project | |
php artisan up | |
@endtask | |
@after | |
@slack('team', 'token', '#project') | |
@endafter |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment