From 40a6d7aacd3497fe257b6141694169cca295cab2 Mon Sep 17 00:00:00 2001 From: yafeilee Date: Sun, 11 May 2014 19:05:55 +0800 Subject: [PATCH] change secrets to rails4.1 style --- config/initializers/secret_token.rb | 1 - config/secrets.yml | 8 ++++++++ 2 files changed, 8 insertions(+), 1 deletion(-) delete mode 100644 config/initializers/secret_token.rb create mode 100644 config/secrets.yml diff --git a/config/initializers/secret_token.rb b/config/initializers/secret_token.rb deleted file mode 100644 index 66c3925..0000000 --- a/config/initializers/secret_token.rb +++ /dev/null @@ -1 +0,0 @@ -WBlog::Application.config.secret_key_base = ENV['SECRET_TOKEN'] diff --git a/config/secrets.yml b/config/secrets.yml new file mode 100644 index 0000000..8309be4 --- /dev/null +++ b/config/secrets.yml @@ -0,0 +1,8 @@ +development: + secret_key_base: e4122773d4324fce978c52cde790d84d14f7194f377aea41b7b8302d1d10150e6076a3b7e5e0c1f24ca330cf0a058482c95ea37908bba1722d0761ba5d4e566a' + +test: + secret_key_base: e4122773d4324fce978c52cde790d84d14f7194f377aea41b7b8302d1d10150e6076a3b7e5e0c1f24ca330cf0a058482c95ea37908bba1722d0761ba5d4e566a' + +production: + secret_key_base: <%= ENV["SECRET_TOKEN"] %>