mirror of
https://github.com/deployphp/deployer.git
synced 2025-02-24 01:02:24 +01:00
New path for deploy.lock file.
This commit is contained in:
parent
37bc2cd1e8
commit
52b21f37b0
@ -9,7 +9,7 @@ namespace Deployer;
|
||||
|
||||
desc('Lock deploy');
|
||||
task('deploy:lock', function () {
|
||||
$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();
|
||||
|
||||
if ($locked) {
|
||||
throw new \RuntimeException(
|
||||
@ -17,11 +17,11 @@ task('deploy:lock', function () {
|
||||
"Run deploy:unlock command to unlock."
|
||||
);
|
||||
} else {
|
||||
run("touch {{deploy_path}}/deploy.lock");
|
||||
run("touch {{deploy_path}}/.dep/deploy.lock");
|
||||
}
|
||||
});
|
||||
|
||||
desc('Unlock deploy');
|
||||
task('deploy:unlock', function () {
|
||||
run("rm {{deploy_path}}/deploy.lock");
|
||||
run("rm {{deploy_path}}/.dep/deploy.lock");
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user