Created
May 17, 2014 17:41
-
-
Save clarkeash/dffef101eb6ef15dcac5 to your computer and use it in GitHub Desktop.
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
/* | |
|-------------------------------------------------------------------------- | |
| Basic Setup/Config | |
|-------------------------------------------------------------------------- | |
*/ | |
@setup | |
$directory = '/home/vagrant/laravel-apps/stubb-project'; | |
@endsetup | |
/* | |
|-------------------------------------------------------------------------- | |
| Servers | |
|-------------------------------------------------------------------------- | |
*/ | |
@servers( | |
['vagrant' => '[email protected] -p 2222'] | |
) | |
/* | |
|-------------------------------------------------------------------------- | |
| Tasks | |
|-------------------------------------------------------------------------- | |
*/ | |
@task('install', ['on' => 'vagrant']) | |
cd {{ $directory }} | |
composer install | |
@endtask | |
@task('update', ['on' => 'vagrant']) | |
cd {{ $directory }} | |
composer update | |
@endtask | |
@task('dump', ['on' => 'vagrant']) | |
cd {{ $directory }} | |
php artisan dump-autoload | |
@endtask | |
@task('cdump', ['on' => 'vagrant']) | |
cd {{ $directory }} | |
composer dump-autoload | |
@endtask | |
@task('migrate', ['on' => 'vagrant']) | |
cd {{ $directory }} | |
php artisan migrate --seed | |
@endtask | |
@task('refresh', ['on' => 'vagrant']) | |
cd {{ $directory }} | |
php artisan migrate:refresh --seed | |
@endtask |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment