Skip to content

Instantly share code, notes, and snippets.

@clarkeash
Created May 17, 2014 17:41
Show Gist options
  • Save clarkeash/dffef101eb6ef15dcac5 to your computer and use it in GitHub Desktop.
Save clarkeash/dffef101eb6ef15dcac5 to your computer and use it in GitHub Desktop.
/*
|--------------------------------------------------------------------------
| 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