debian-mirror-gitlab/config/initializers/geo.rb

10 lines
238 B
Ruby
Raw Normal View History

2019-09-30 21:07:59 +05:30
# frozen_string_literal: true
Gitlab.ee do
2020-03-09 13:42:32 +05:30
if Gitlab::Geo.connected? && Gitlab::Geo.primary?
Gitlab::Geo.current_node&.update_clone_url!
2019-09-30 21:07:59 +05:30
end
2020-03-09 13:42:32 +05:30
rescue => e
warn "WARNING: Unable to check/update clone_url_prefix for Geo: #{e}"
2019-09-30 21:07:59 +05:30
end