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
78caba0d
Commit
78caba0d
authored
Mar 17, 2016
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ES: Fix. bin/elastic_repo_indexer follows config
parent
d95c0f5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
bin/elastic_repo_indexer
bin/elastic_repo_indexer
+6
-3
No files found.
bin/elastic_repo_indexer
View file @
78caba0d
...
...
@@ -14,9 +14,8 @@ TO_SHA = ENV['TO_SHA']
RAILS_ENV
=
ENV
[
'RAILS_ENV'
]
elastic_connection_info
=
JSON
.
parse
ENV
[
'ELASTIC_CONNECTION_INFO'
]
ELASTIC_HOST
=
elastic_connection_info
[
:host
]
ELASTIC_PORT
=
elastic_connection_info
[
:port
]
ELASTIC_HOST
=
elastic_connection_info
[
'host'
]
ELASTIC_PORT
=
elastic_connection_info
[
'port'
]
class
Repository
include
Elasticsearch
::
Git
::
Repository
...
...
@@ -28,6 +27,10 @@ class Repository
port:
ELASTIC_PORT
)
def
client_for_indexing
self
.
__elasticsearch__
.
client
end
def
repository_id
PROJECT_ID
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