From ccbab6ad4412d9068b69c5d0dd8e0eea7a68ed3f Mon Sep 17 00:00:00 2001 From: aravind Date: Fri, 16 Jan 2015 20:10:22 +0530 Subject: [PATCH] solved a problem db.yml and updated readme --- README.rdoc | 3 +++ config/database.yml | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.rdoc b/README.rdoc index 5f40e2f..5ad7542 100644 --- a/README.rdoc +++ b/README.rdoc @@ -25,6 +25,9 @@ Things you may want to cover: * ... +== One time setup for project + +Create two ENV variables for ENV["ADMIN_PASS"] and ENV["ADMIN_USER"] for username and password for admin user == Before committing/pushing code diff --git a/config/database.yml b/config/database.yml index 8dffb08..8158ab0 100644 --- a/config/database.yml +++ b/config/database.yml @@ -7,8 +7,8 @@ default: &default host: localhost adapter: postgresql encoding: unicode - user: <%= Rails.application.secrets[:database]["username"] %> - password: <%= Rails.application.secrets[:database]["password"] %> + user: <%= Rails.application.secrets[:database][:username] %> + password: <%= Rails.application.secrets[:database][:password] %> pool: 5 encoding: utf8