Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
Respect CLOUD_FOUNDRY_CONFIG_PATH if it is present
Browse files Browse the repository at this point in the history
Change-Id: I2ed12dd5e6095ab2702470bfbe91799937cf2ddd
  • Loading branch information
dsyer committed Jan 24, 2012
1 parent 867720a commit ff8d8cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion neo4j/bin/neo4j_gateway
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ class VCAP::Services::Neo4j::Gateway < VCAP::Services::Base::Gateway
end

def default_config_file
File.join(File.dirname(__FILE__), '..', 'config', 'neo4j_gateway.yml')
config_base_dir = ENV["CLOUD_FOUNDRY_CONFIG_PATH"] || File.join(File.dirname(__FILE__), '..', 'config')
File.join(config_base_dir, 'neo4j_gateway.yml')
end

end
Expand Down

0 comments on commit ff8d8cf

Please sign in to comment.