From: Tom Hughes Date: Wed, 9 Mar 2022 19:21:51 +0000 (+0000) Subject: Make sure old APIs are cleaned up on dev X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/0c4675f3d9cf77d932809778a11e273a07a0282e?ds=sidebyside Make sure old APIs are cleaned up on dev --- diff --git a/cookbooks/dev/recipes/default.rb b/cookbooks/dev/recipes/default.rb index 5a4110c75..d7d88656a 100644 --- a/cookbooks/dev/recipes/default.rb +++ b/cookbooks/dev/recipes/default.rb @@ -248,6 +248,10 @@ if node[:postgresql][:clusters][:"14/main"] cgimap_port = 9000 + Dir.glob("/srv/*.apis.dev.openstreetmap.org").each do |dir| + node.default_unless[:dev][:rails][File.basename(dir).split(".").first] = {} + end + node[:dev][:rails].each do |name, details| database_name = details[:database] || "apis_#{name}" site_name = "#{name}.apis.dev.openstreetmap.org"