Advertisement
Guest User

Untitled

a guest
Jul 10th, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.69 KB | None | 0 0
  1. ArgumentError: wrong number of arguments (6 for 0..1)remote:/tmp/build_d28093d7a0959f34fce94a564d3d72a8/vendor/bundle/ruby/2.2.0/gems/a ctiverecord-5.0.0/lib/active_record/connection_handling.rb:47:in `establish_connection'
  2. remote: /tmp/build_d28093d7a0959f34fce94a564d3d72a8/config/environments.rb:8:in `block in <top (required)>'
  3. remote: /tmp/build_d28093d7a0959f34fce94a564d3d72a8/vendor/bundle/ruby/2.2.0/gems/sinatra-1.4.7/lib/sinatra/base.rb:1411:in `configure'
  4. remote: /tmp/build_d28093d7a0959f34fce94a564d3d72a8/vendor/bundle/ruby/2.2.0/gems/sinatra-1.4.7/lib/sinatra/base.rb:1981:in `block (2 levels) in delegate'
  5. remote: /tmp/build_d28093d7a0959f34fce94a564d3d72a8/config/environments.rb:5:in `<top (required)>'
  6. remote: /tmp/build_d28093d7a0959f34fce94a564d3d72a8/vendor/ruby-2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
  7. remote: /tmp/build_d28093d7a0959f34fce94a564d3d72a8/vendor/ruby-2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
  8. remote: /tmp/build_d28093d7a0959f34fce94a564d3d72a8/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0/lib/active_support/dependencies.rb:293:in `block in require'
  9. remote: /tmp/build_d28093d7a0959f34fce94a564d3d72a8/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0/lib/active_support/dependencies.rb:259:in `load_dependency'
  10. remote: /tmp/build_d28093d7a0959f34fce94a564d3d72a8/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0/lib/active_support/dependencies.rb:293:in `require'
  11. remote: /tmp/build_d28093d7a0959f34fce94a564d3d72a8/citadel_app.rb:6:in `<top (required)>'
  12. remote: /tmp/build_d28093d7a0959f34fce94a564d3d72a8/vendor/ruby-2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
  13. remote: /tmp/build_d28093d7a0959f34fce94a564d3d72a8/vendor/ruby-2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
  14. remote: /tmp/build_d28093d7a0959f34fce94a564d3d72a8/Rakefile:3:in `<top (required)>'
  15. remote: /tmp/build_d28093d7a0959f34fce94a564d3d72a8/vendor/ruby-2.2.3/lib/ruby/2.2.0/rake/rake_module.rb:28:in `load'
  16. remote: /tmp/build_d28093d7a0959f34fce94a564d3d72a8/vendor/ruby-2.2.3/lib/ruby/2.2.0/rake/rake_module.rb:28:in `load_rakefile'
  17. remote: /tmp/build_d28093d7a0959f34fce94a564d3d72a8/vendor/ruby-2.2.3/lib/ruby/2.2.0/rake/application.rb:689:in `raw_load_rakefile'
  18. remote: /tmp/build_d28093d7a0959f34fce94a564d3d72a8/vendor/ruby-2.2.3/lib/ruby/2.2.0/rake/application.rb:94:in `block in load_rakefile'
  19. remote: /tmp/build_d28093d7a0959f34fce94a564d3d72a8/vendor/ruby-2.2.3/lib/ruby/2.2.0/rake/application.rb:176:in `standard_exception_handling'
  20. remote: /tmp/build_d28093d7a0959f34fce94a564d3d72a8/vendor/ruby-2.2.3/lib/ruby/2.2.0/rake/application.rb:93:in `load_rakefile'
  21. remote: /tmp/build_d28093d7a0959f34fce94a564d3d72a8/vendor/ruby-2.2.3/lib/ruby/2.2.0/rake/application.rb:77:in `block in run'
  22. remote: /tmp/build_d28093d7a0959f34fce94a564d3d72a8/vendor/ruby-2.2.3/lib/ruby/2.2.0/rake/application.rb:176:in `standard_exception_handling'
  23. remote: /tmp/build_d28093d7a0959f34fce94a564d3d72a8/vendor/ruby-2.2.3/lib/ruby/2.2.0/rake/application.rb:75:in `run'
  24. remote: vendor/ruby-2.2.3/bin/rake:37:in `<main>'
  25.  
  26. @environment = ENV['RACK_ENV'] || 'development'
  27. @dbconfig = YAML.load(File.read('config/database.yml'))
  28. ActiveRecord::Base.establish_connection @dbconfig[@environment]
  29.  
  30. configure :production do
  31. db = URI.parse(ENV['DATABASE_URL'])
  32.  
  33. ActiveRecord::Base.establish_connection(
  34. adapter = db.scheme == 'postgres' ? 'postgresql' : db.scheme,
  35. host = db.host,
  36. username = db.user,
  37. password = db.password,
  38. database = db.path[1..-1],
  39. encoding = 'utf8'
  40. )
  41. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement