mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 01:02:24 +01:00
Adding useful tasks to put application in maintenance mode
This commit is contained in:
parent
050687bc84
commit
47a5cbeb7d
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user