mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 01:02:24 +01:00
Rename task 'up' and 'down' to 'deploy:up' and 'deploy:down'
This commit is contained in:
parent
47a5cbeb7d
commit
a7b998fb36
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user