Skip to content

Commit

Permalink
Issue marklogic-community#685: Grab path relative to project root
Browse files Browse the repository at this point in the history
The path indicated by shared_config looks for the file relative to the
root of the roxy project
  • Loading branch information
Josh Meekhof committed Nov 3, 2016
1 parent 80c3392 commit 6745110
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deploy/lib/server_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2685,8 +2685,9 @@ def ServerConfig.properties(prop_file_location = @@path)
properties = ServerConfig.load_properties(default_properties_file, "ml.")
properties.merge!(ServerConfig.load_properties(properties_file, "ml."))

#Look for optional shared_config, if it is set grab the properties from path relative to the root of the roxy project
if properties['ml.shared_config'] then
shared_properties_file = ServerConfig.expand_path(properties['ml.shared_config'])
shared_properties_file = ServerConfig.expand_path("#{@@path}/../#{properties['ml.shared_config']}")
properties.merge!(ServerConfig.load_properties(shared_properties_file))
end

Expand Down

0 comments on commit 6745110

Please sign in to comment.