Skip to content
Browse files

get secret token from environment and restore secret_token.rb to file…

…s being tracked
  • Loading branch information...
1 parent bba9ec9 commit 11b09086283d29be3e4dd479fbdad34c55d2c842 @kagemusha committed Sep 5, 2013
Showing with 4 additions and 2 deletions.
  1. +1 −1 .gitignore
  2. +3 −1 config/initializers/secret_token.rb
View
2 .gitignore
@@ -16,4 +16,4 @@ capybara-*.html
rerun.txt
pickle-email-*.html
.project
-config/initializers/secret_token.rb
+config/application.yml
View
4 config/initializers/secret_token.rb
@@ -4,4 +4,6 @@
# If you change this key, all old signed cookies will become invalid!
# Make sure the secret is at least 30 characters and all random,
# no regular words or you'll be exposed to dictionary attacks.
-EmberRailsDevise::Application.config.secret_token = '138cd0f69b1e9673d0b9898d36ea6a56e7a3baf9a221f2da8300ab9a69ce60e64d49759ecdf66b0961f9c9554bf511c1df5d26abf7a2054c870afbff53d2f33d'
+
+#IMPORTANT: set EBR_SECRET_KEY_BASE in your environment
+EmberRailsDevise::Application.config.secret_key_base = ENV['EBR_SECRET_KEY_BASE']

0 comments on commit 11b0908

Please sign in to comment.
Something went wrong with that request. Please try again.