Had to modify door log model and add config.yml to avoid storing password in git
This commit is contained in:
11
config/config.yml.example
Normal file
11
config/config.yml.example
Normal 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"
|
||||
1
config/initializers/load_config.rb
Normal file
1
config/initializers/load_config.rb
Normal file
@@ -0,0 +1 @@
|
||||
APP_CONFIG = YAML.load_file("#{Rails.root}/config/config.yml")[Rails.env]
|
||||
Reference in New Issue
Block a user