Skip to content

Commit 52b21f3

Browse files
committed
New path for deploy.lock file.
1 parent 37bc2cd commit 52b21f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

recipe/deploy/lock.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@
99

1010
desc('Lock deploy');
1111
task('deploy:lock', function () {
12-
$locked = run("if [ -f {{deploy_path}}/deploy.lock ]; then echo 'true'; fi")->toBool();
12+
$locked = run("if [ -f {{deploy_path}}/.dep/deploy.lock ]; then echo 'true'; fi")->toBool();
1313

1414
if ($locked) {
1515
throw new \RuntimeException(
1616
"Deploy locked.\n" .
1717
"Run deploy:unlock command to unlock."
1818
);
1919
} else {
20-
run("touch {{deploy_path}}/deploy.lock");
20+
run("touch {{deploy_path}}/.dep/deploy.lock");
2121
}
2222
});
2323

2424
desc('Unlock deploy');
2525
task('deploy:unlock', function () {
26-
run("rm {{deploy_path}}/deploy.lock");
26+
run("rm {{deploy_path}}/.dep/deploy.lock");
2727
});

0 commit comments

Comments
 (0)