To avoid polluting the default SSH directory with lots of Kamal config, we'll default to putting them in a `kamal` sub directory. But also make the directory configurable with the `run_directory` key, so for example you can set it as `/var/run/kamal/` The directory is created during bootstrap or before any command that will need to access a file.
6 lines
132 B
Ruby
6 lines
132 B
Ruby
class Kamal::Commands::Server < Kamal::Commands::Base
|
|
def ensure_run_directory
|
|
[:mkdir, "-p", config.run_directory]
|
|
end
|
|
end
|