Skip to content

Commit 11b0908

Browse files
committed
get secret token from environment and restore secret_token.rb to files being tracked
1 parent bba9ec9 commit 11b0908

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ capybara-*.html
1616
rerun.txt
1717
pickle-email-*.html
1818
.project
19-
config/initializers/secret_token.rb
19+
config/application.yml

config/initializers/secret_token.rb

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,6 @@
44
# If you change this key, all old signed cookies will become invalid!
55
# Make sure the secret is at least 30 characters and all random,
66
# no regular words or you'll be exposed to dictionary attacks.
7-
EmberRailsDevise::Application.config.secret_token = '138cd0f69b1e9673d0b9898d36ea6a56e7a3baf9a221f2da8300ab9a69ce60e64d49759ecdf66b0961f9c9554bf511c1df5d26abf7a2054c870afbff53d2f33d'
7+
8+
#IMPORTANT: set EBR_SECRET_KEY_BASE in your environment
9+
EmberRailsDevise::Application.config.secret_key_base = ENV['EBR_SECRET_KEY_BASE']

0 commit comments

Comments
 (0)