Commit fb85fd9d authored by Robert Speicher's avatar Robert Speicher

Wrap geo initializer in `ee` block

parent 4bba30ca
if File.exist?(Rails.root.join('config/database_geo.yml'))
Gitlab.ee do
if File.exist?(Rails.root.join('config/database_geo.yml'))
Rails.application.configure do
config.geo_database = config_for(:database_geo)
end
end
end
begin
begin
if Gitlab::Geo.connected? && Gitlab::Geo.primary?
Gitlab::Geo.current_node&.update_clone_url!
end
rescue => e
rescue => e
warn "WARNING: Unable to check/update clone_url_prefix for Geo: #{e}"
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment