We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37bc2cd commit 52b21f3Copy full SHA for 52b21f3
recipe/deploy/lock.php
@@ -9,19 +9,19 @@
9
10
desc('Lock deploy');
11
task('deploy:lock', function () {
12
- $locked = run("if [ -f {{deploy_path}}/deploy.lock ]; then echo 'true'; fi")->toBool();
+ $locked = run("if [ -f {{deploy_path}}/.dep/deploy.lock ]; then echo 'true'; fi")->toBool();
13
14
if ($locked) {
15
throw new \RuntimeException(
16
"Deploy locked.\n" .
17
"Run deploy:unlock command to unlock."
18
);
19
} else {
20
- run("touch {{deploy_path}}/deploy.lock");
+ run("touch {{deploy_path}}/.dep/deploy.lock");
21
}
22
});
23
24
desc('Unlock deploy');
25
task('deploy:unlock', function () {
26
- run("rm {{deploy_path}}/deploy.lock");
+ run("rm {{deploy_path}}/.dep/deploy.lock");
27
0 commit comments