This is for boot time configuration for the kamal proxy. Config in here doesn't not belong in Kamal::Configuration::Proxy which is for deploy time configuration for the app itself. Kamal apps don't contain boot time config, because multiple apps can share a proxy and the config could conflict.
10 lines
336 B
Ruby
10 lines
336 B
Ruby
module Kamal::Commands::App::ErrorPages
|
|
def create_error_pages_directory
|
|
make_directory(config.proxy_boot.error_pages_directory)
|
|
end
|
|
|
|
def clean_up_error_pages
|
|
[ :find, config.proxy_boot.error_pages_directory, "-mindepth", "1", "-maxdepth", "1", "!", "-name", KAMAL.config.version, "-exec", "rm", "-rf", "{} +" ]
|
|
end
|
|
end
|