Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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'
- remote: /tmp/build_d28093d7a0959f34fce94a564d3d72a8/config/environments.rb:8:in `block in <top (required)>'
- remote: /tmp/build_d28093d7a0959f34fce94a564d3d72a8/vendor/bundle/ruby/2.2.0/gems/sinatra-1.4.7/lib/sinatra/base.rb:1411:in `configure'
- 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'
- remote: /tmp/build_d28093d7a0959f34fce94a564d3d72a8/config/environments.rb:5:in `<top (required)>'
- remote: /tmp/build_d28093d7a0959f34fce94a564d3d72a8/vendor/ruby-2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
- remote: /tmp/build_d28093d7a0959f34fce94a564d3d72a8/vendor/ruby-2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
- 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'
- remote: /tmp/build_d28093d7a0959f34fce94a564d3d72a8/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0/lib/active_support/dependencies.rb:259:in `load_dependency'
- remote: /tmp/build_d28093d7a0959f34fce94a564d3d72a8/vendor/bundle/ruby/2.2.0/gems/activesupport-5.0.0/lib/active_support/dependencies.rb:293:in `require'
- remote: /tmp/build_d28093d7a0959f34fce94a564d3d72a8/citadel_app.rb:6:in `<top (required)>'
- remote: /tmp/build_d28093d7a0959f34fce94a564d3d72a8/vendor/ruby-2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
- remote: /tmp/build_d28093d7a0959f34fce94a564d3d72a8/vendor/ruby-2.2.3/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
- remote: /tmp/build_d28093d7a0959f34fce94a564d3d72a8/Rakefile:3:in `<top (required)>'
- remote: /tmp/build_d28093d7a0959f34fce94a564d3d72a8/vendor/ruby-2.2.3/lib/ruby/2.2.0/rake/rake_module.rb:28:in `load'
- remote: /tmp/build_d28093d7a0959f34fce94a564d3d72a8/vendor/ruby-2.2.3/lib/ruby/2.2.0/rake/rake_module.rb:28:in `load_rakefile'
- remote: /tmp/build_d28093d7a0959f34fce94a564d3d72a8/vendor/ruby-2.2.3/lib/ruby/2.2.0/rake/application.rb:689:in `raw_load_rakefile'
- remote: /tmp/build_d28093d7a0959f34fce94a564d3d72a8/vendor/ruby-2.2.3/lib/ruby/2.2.0/rake/application.rb:94:in `block in load_rakefile'
- remote: /tmp/build_d28093d7a0959f34fce94a564d3d72a8/vendor/ruby-2.2.3/lib/ruby/2.2.0/rake/application.rb:176:in `standard_exception_handling'
- remote: /tmp/build_d28093d7a0959f34fce94a564d3d72a8/vendor/ruby-2.2.3/lib/ruby/2.2.0/rake/application.rb:93:in `load_rakefile'
- remote: /tmp/build_d28093d7a0959f34fce94a564d3d72a8/vendor/ruby-2.2.3/lib/ruby/2.2.0/rake/application.rb:77:in `block in run'
- remote: /tmp/build_d28093d7a0959f34fce94a564d3d72a8/vendor/ruby-2.2.3/lib/ruby/2.2.0/rake/application.rb:176:in `standard_exception_handling'
- remote: /tmp/build_d28093d7a0959f34fce94a564d3d72a8/vendor/ruby-2.2.3/lib/ruby/2.2.0/rake/application.rb:75:in `run'
- remote: vendor/ruby-2.2.3/bin/rake:37:in `<main>'
- @environment = ENV['RACK_ENV'] || 'development'
- @dbconfig = YAML.load(File.read('config/database.yml'))
- ActiveRecord::Base.establish_connection @dbconfig[@environment]
- configure :production do
- db = URI.parse(ENV['DATABASE_URL'])
- ActiveRecord::Base.establish_connection(
- adapter = db.scheme == 'postgres' ? 'postgresql' : db.scheme,
- host = db.host,
- username = db.user,
- password = db.password,
- database = db.path[1..-1],
- encoding = 'utf8'
- )
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement