Skip to content

Commit

Permalink
Merge pull request maxdemarzi#107 from sasasasumna/qa
Browse files Browse the repository at this point in the history
Added QA environment
  • Loading branch information
sasasasumna committed Feb 12, 2014
2 parents e87a648 + 78a0b1f commit e7878b2
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.idea
.rvmrc
.DS_Store
.bundle
deja_test.rb
test.rb
neo4j
Expand Down
17 changes: 17 additions & 0 deletions lib/config/graph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ development:
authentication: nil # 'basic' or 'digest'
username: nil
password: nil

staging:
protocol: "http://"
server: "internal-Neo4J-LB-1693655064.us-west-2.elb.amazonaws.com"
Expand All @@ -24,6 +25,7 @@ staging:
authentication: nil # 'basic' or 'digest'
username: nil
password: nil

test:
protocol: "http://"
server: "localhost"
Expand All @@ -37,6 +39,21 @@ test:
authentication: nil # 'basic' or 'digest'
username: nil
password: nil

qa:
protocol: "http://"
server: "localhost"
port: 7474
directory: "" # prefix this path with '/'
cypher_path: "/cypher"
gremlin_path: "/ext/GremlinPlugin/graphdb/execute_script"
log_file: "neography.log"
log_enabled: false
max_threads: 20
authentication: nil # 'basic' or 'digest'
username: nil
password: nil

production:
protocol: "http://"
server: "localhost"
Expand Down
4 changes: 1 addition & 3 deletions lib/deja.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
module Deja
extend ActiveSupport::Autoload

ENV['RAILS_ENV'] ||= 'development'

autoload :RestIndex
autoload :Node
autoload :Cast
Expand Down Expand Up @@ -41,7 +39,7 @@ class << self; attr_accessor :neo, :tx, :batch ; end

config_hash = YAML.load_file("#{File.dirname(File.expand_path(__FILE__))}/config/graph.yml")
Neography.configure do |config|
config_hash[ENV['RAILS_ENV']].each do |k, v|
config_hash[CB.environment].each do |k, v|
config.send("#{k}=".to_sym, v)
end
end
Expand Down

0 comments on commit e7878b2

Please sign in to comment.