change secrets to rails4.1 style

This commit is contained in:
yafeilee 2014-05-11 19:05:55 +08:00
parent 94ad9f9be5
commit 40a6d7aacd
2 changed files with 8 additions and 1 deletions

View File

@ -1 +0,0 @@
WBlog::Application.config.secret_key_base = ENV['SECRET_TOKEN']

8
config/secrets.yml Normal file
View File

@ -0,0 +1,8 @@
development:
secret_key_base: e4122773d4324fce978c52cde790d84d14f7194f377aea41b7b8302d1d10150e6076a3b7e5e0c1f24ca330cf0a058482c95ea37908bba1722d0761ba5d4e566a'
test:
secret_key_base: e4122773d4324fce978c52cde790d84d14f7194f377aea41b7b8302d1d10150e6076a3b7e5e0c1f24ca330cf0a058482c95ea37908bba1722d0761ba5d4e566a'
production:
secret_key_base: <%= ENV["SECRET_TOKEN"] %>