Skip to content

Commit

Permalink
Adding artisan migration helper
Browse files Browse the repository at this point in the history
adding tasks for laravel `artisan migrate`
  • Loading branch information
filpgame committed Jan 28, 2016
1 parent 66c4543 commit e4c5715
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions recipe/laravel.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,16 @@
/**
* Helper tasks
*/
task('deploy:migrate', function () {
$output = run('php {{deploy_path}}/current/artisan migrate');
writeln('<info>'.$output.'</info>');
})->desc('Execute artisan migrate');

task('deploy:migrate_rollback', function () {
$output = run('php {{deploy_path}}/current/artisan migrate:rollback');
writeln('<info>'.$output.'</info>');
})->desc('Execute artisan migrate:rollback');

task('deploy:up', function () {
$output = run('php {{deploy_path}}/current/artisan up');
writeln('<info>'.$output.'</info>');
Expand Down

0 comments on commit e4c5715

Please sign in to comment.