Rename task 'up' and 'down' to 'deploy:up' and 'deploy:down'

This commit is contained in:
oanhnn 2016-01-08 08:41:16 +07:00
parent 47a5cbeb7d
commit a7b998fb36

View File

@ -6,6 +6,7 @@
*/
require_once __DIR__ . '/common.php';
// This recipe support Laravel 5.1+, with orther version, please see document https://github.com/deployphp/docs
// Laravel shared dirs
set('shared_dirs', [
@ -40,12 +41,12 @@ after('deploy', 'success');
/**
* Helper tasks
*/
task('up', function () {
task('deploy:up', function () {
$output = run('php {{deploy_path}}/current/artisan up');
writeln('<info>'.$output.'</info>');
})->desc('Disable maintenance mode');
task('down', function () {
task('deploy:down', function () {
$output = run('php {{deploy_path}}/current/artisan down');
writeln('<error>'.$output.'</error>');
})->desc('Enable maintenance mode');