Permalink
Browse files

Removed secret token from repo, fixes #234

Using a different one in dev and test, requires an ENV variable in
production
  • Loading branch information...
1 parent 1c6226f commit 38e59ca458d46fa7c0e165a1327b64d289464d0a @andrew andrew committed Jan 1, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 config/initializers/secret_token.rb
@@ -0,0 +1,6 @@
+if Rails.env.production? && ENV['SECRET_TOKEN'].blank?
+ raise 'SECRET_TOKEN environment variable must be set!'
+end
+
+Tfpullrequests::Application.config.secret_token =
+ ENV['SECRET_TOKEN'] || '9e54bbeeb2a8573aee35f49c56406f705443fc4afc9e7037a79b9cd8065b592df6d97b5f41ba12acc46fdf61a60363e00ea2debae684bad89cfd5a2b74049091'

0 comments on commit 38e59ca

Please sign in to comment.