Put locks in a locks directory. Ensure that locks directory exits on a primary host.

This commit is contained in:
Igor Alexandrov
2024-03-27 12:04:39 +04:00
parent 43672ec9a5
commit cee449c269
7 changed files with 37 additions and 13 deletions

View File

@@ -86,6 +86,8 @@ module Kamal::Cli
ensure_run_directory
ensure_locks_directory
acquire_lock
begin
@@ -191,5 +193,11 @@ module Kamal::Cli
execute(*KAMAL.server.ensure_run_directory)
end
end
def ensure_locks_directory
on(KAMAL.primary_host) do
execute(*KAMAL.lock.ensure_locks_directory)
end
end
end
end