Had to modify door log model and add config.yml to avoid storing password in git

This commit is contained in:
2012-09-15 20:41:17 -07:00
parent 93e77b692f
commit 921ba21a40
9 changed files with 43 additions and 12 deletions

11
config/config.yml.example Normal file
View File

@@ -0,0 +1,11 @@
development:
door_access_url: "http://192.168.1.100"
door_access_password: "1234"
test:
door_access_url: "http://192.168.1.100"
door_access_password: "1234"
production:
door_access_url: "http://192.168.1.100"
door_access_password: "1234"

View File

@@ -0,0 +1 @@
APP_CONFIG = YAML.load_file("#{Rails.root}/config/config.yml")[Rails.env]