mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 09:12:51 +01:00
Check for /current/artisan existance instead of just /current
This commit is contained in:
parent
3d25d95ede
commit
d9ff7e358f
@ -22,12 +22,12 @@ set('writable_dirs', ['bootstrap/cache', 'storage']);
|
||||
* Helper tasks
|
||||
*/
|
||||
task('artisan:up', function () {
|
||||
$output = run('if [ -d {{deploy_path}}/current ]; then {{bin/php}} {{deploy_path}}/current/artisan up; fi');
|
||||
$output = run('if [ -f {{deploy_path}}/current/artisan ]; then {{bin/php}} {{deploy_path}}/current/artisan up; fi');
|
||||
writeln('<info>' . $output . '</info>');
|
||||
})->desc('Disable maintenance mode');
|
||||
|
||||
task('artisan:down', function () {
|
||||
$output = run('if [ -d {{deploy_path}}/current ]; then {{bin/php}} {{deploy_path}}/current/artisan down; fi');
|
||||
$output = run('if [ -f {{deploy_path}}/current/artisan ]; then {{bin/php}} {{deploy_path}}/current/artisan down; fi');
|
||||
writeln('<error>' . $output . '</error>');
|
||||
})->desc('Enable maintenance mode');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user