Maintenance mode
Adds support for maintenance mode to Kamal. There are two new commands: - `kamal app maintenance` - puts the app in maintenance mode - `kamal app live` - puts the app back in live mode In maintenance mode, the kamal proxy will respond to requests with a 503 status code. It will use an error page built into kamal proxy. You can use your own error page by setting `error_pages_path` in the configuration. This will copy any 4xx.html or 5xx.html files from that page to a volume mounted into the proxy container.
This commit is contained in:
@@ -395,4 +395,13 @@ class ConfigurationTest < ActiveSupport::TestCase
|
||||
|
||||
assert_equal "Different roles can't share the same host for SSL: foo.example.com", exception.message
|
||||
end
|
||||
|
||||
test "proxy directories" do
|
||||
assert_equal ".kamal/proxy/apps-config", @config.proxy_apps_directory
|
||||
assert_equal "/home/kamal-proxy/.apps-config", @config.proxy_apps_container_directory
|
||||
assert_equal ".kamal/proxy/apps-config/app", @config.proxy_app_directory
|
||||
assert_equal "/home/kamal-proxy/.apps-config/app", @config.proxy_app_container_directory
|
||||
assert_equal ".kamal/proxy/apps-config/app/error_pages", @config.proxy_error_pages_directory
|
||||
assert_equal "/home/kamal-proxy/.apps-config/app/error_pages", @config.proxy_error_pages_container_directory
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user