Put locks in a locks directory. Ensure that locks directory exits on a primary host.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user