Commit 20ed6c30 authored by Nick Thomas's avatar Nick Thomas

Clean up relative path expansion in bin/elastic_repo_indexer

parent 04fe3d79
...@@ -8,9 +8,9 @@ require 'active_support' ...@@ -8,9 +8,9 @@ require 'active_support'
require 'active_support/core_ext' require 'active_support/core_ext'
require 'benchmark' require 'benchmark'
load File.join(File.dirname(__FILE__), '..', '/lib/gitlab/elastic/client.rb') require File.expand_path('../lib/gitlab/elastic/client', File.dirname(__FILE__))
path_to_log_file = File.expand_path('../../log/es-indexer.log', __FILE__) path_to_log_file = File.expand_path('../log/es-indexer.log', File.dirname(__FILE__))
LOGGER = Logger.new(path_to_log_file) LOGGER = Logger.new(path_to_log_file)
PROJECT_ID = ARGV.shift PROJECT_ID = ARGV.shift
......
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