Commit 9003cb10 by tady

install settingslogic

parent 123f31d6
......@@ -15,11 +15,14 @@
/log/*.log
/tmp
.env
/coverage/.*
*.bk
/db/*.sql
# secret files
.env
/config/database.yml
/config/settings.yml
......@@ -112,5 +112,7 @@ gem 'premailer'
gem 'faraday'
gem 'settingslogic'
# Check mail format
gem 'validates_email_format_of'
......@@ -273,6 +273,7 @@ GEM
sdoc (0.4.0)
json (~> 1.8)
rdoc (~> 4.0, < 5.0)
settingslogic (2.0.9)
simplecov (0.8.2)
docile (~> 1.1.0)
multi_json
......@@ -366,6 +367,7 @@ DEPENDENCIES
rubocop
sass-rails
sdoc
settingslogic
spring
therubyracer
thin
......
......@@ -23,7 +23,7 @@ set :deploy_to, '/var/rails/rendezvous'
# set :pty, true
# Default value for :linked_files is []
# set :linked_files, %w{config/database.yml}
set :linked_files, %w{config/database.yml config/settings.yml}
# Default value for linked_dirs is []
set :linked_dirs, %w{bin log tmp/pids tmp/cache tmp/sockets vendor/bundle public/system}
......
class Settings < Settingslogic
source "#{Rails.root}/config/settings.yml"
namespace Rails.env
end
defaults: &defaults
google_api:
client_id: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com"
secret: "xxxxxxxxxxxxxxxxxxxxxxxxxxxx"
development:
<<: *defaults
test:
<<: *defaults
production:
<<: *defaults
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment