Skip to content

Commit

Permalink
heroku compatability (thanks Marcel Scherf for the idea)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxdemarzi committed Jan 25, 2012
1 parent 47c2539 commit aac74c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/neography/rest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class Rest

attr_accessor :protocol, :server, :port, :directory, :log_file, :log_enabled, :logger, :max_threads, :authentication, :username, :password

def initialize(options={})
def initialize(options=ENV['NEO4J_URL'] || {})
init = {:protocol => Neography::Config.protocol,
:server => Neography::Config.server,
:port => Neography::Config.port,
Expand Down
2 changes: 1 addition & 1 deletion lib/neography/tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace :neo4j do
desc "Install Neo4j"
task :install, :edition, :version do |t, args|
args.with_defaults(:edition => "community", :version => "1.6.M03")
args.with_defaults(:edition => "community", :version => "1.6")
puts "Installing Neo4j-#{args[:edition]}-#{args[:version]}"

if OS::Underlying.windows?
Expand Down

0 comments on commit aac74c5

Please sign in to comment.