Adding useful tasks to put application in maintenance mode

This commit is contained in:
Mattia Trapani 2016-01-07 17:31:27 +01:00 committed by Mattia Trapani
parent 050687bc84
commit 47a5cbeb7d

View File

@ -36,3 +36,16 @@ task('deploy', [
])->desc('Deploy your project');
after('deploy', 'success');
/**
* Helper tasks
*/
task('up', function () {
$output = run('php {{deploy_path}}/current/artisan up');
writeln('<info>'.$output.'</info>');
})->desc('Disable maintenance mode');
task('down', function () {
$output = run('php {{deploy_path}}/current/artisan down');
writeln('<error>'.$output.'</error>');
})->desc('Enable maintenance mode');