Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
fb85fd9d
Commit
fb85fd9d
authored
Jul 08, 2019
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wrap geo initializer in `ee` block
parent
4bba30ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
config/initializers/geo.rb
config/initializers/geo.rb
+11
-9
No files found.
config/initializers/geo.rb
View file @
fb85fd9d
if
File
.
exist?
(
Rails
.
root
.
join
(
'config/database_geo.yml'
))
Rails
.
application
.
configure
do
config
.
geo_database
=
config_for
(
:database_geo
)
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
if
Gitlab
::
Geo
.
connected?
&&
Gitlab
::
Geo
.
primary?
Gitlab
::
Geo
.
current_node
&
.
update_clone_url!
begin
if
Gitlab
::
Geo
.
connected?
&&
Gitlab
::
Geo
.
primary?
Gitlab
::
Geo
.
current_node
&
.
update_clone_url!
end
rescue
=>
e
warn
"WARNING: Unable to check/update clone_url_prefix for Geo:
#{
e
}
"
end
rescue
=>
e
warn
"WARNING: Unable to check/update clone_url_prefix for Geo:
#{
e
}
"
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment