Environment setup issues
Created by: latortuga
I'm on Ubuntu 14.04 LTS and running bin/setup
gives me issues with the default configuration:
Couldn't create database for {"adapter"=>"postgresql", "database"=>"administrate-prototype_development", "encoding"=>"utf8", "host"=>"localhost", "min_messages"=>"warning", "pool"=>2, "timeout"=>5000}
fe_sendauth: no password supplied
/home/drew/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/postgresql_adapter.rb:651:in `initialize'
/home/drew/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/postgresql_adapter.rb:651:in `new'
/home/drew/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/postgresql_adapter.rb:651:in `connect'
/home/drew/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/postgresql_adapter.rb:242:in `initialize'
/home/drew/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/activerecord-4.2.2/lib/active_record/connection_adapters/postgresql_adapter.rb:44:in `new'
...with a bunch more output. I commented out the host
portion in database.yml
and all works perfectly. Would you be amenable to accepting a PR where I modify the setup script to copy a database.yml.example
to database.yml
and add database.yml
to .gitignore
?