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"] %>