Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/*
|--------------------------------------------------------------------------
| Basic Setup/Config
|--------------------------------------------------------------------------
*/
@setup
$directory = '/home/vagrant/laravel-apps/stubb-project';
@endsetup
/*
|--------------------------------------------------------------------------
| Servers
|--------------------------------------------------------------------------
*/
@servers(
['vagrant' => 'vagrant@127.0.0.1 -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