Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Store Rails secret token in the .env file and update .env.example

  • Loading branch information...
commit af923dd3293f1a5973b6820c494add926c55c07b 1 parent 0358a97
@nathansobo authored
Showing with 4 additions and 2 deletions.
  1. +3 −1 .env.example
  2. +1 −1  config/initializers/secret_token.rb
View
4 .env.example
@@ -1,4 +1,6 @@
-PUSHER_URL=
+RAILS_SECRET_TOKEN=
+PUSHER_URL=http://key:secret@api.pusherapp.com:80/apps/app-number
GITHUB_KEY=
GITHUB_SECRET=
GITHUB_TEAM_ID=
+REDISTOGO_URL=redis://localhost:6379
View
2  config/initializers/secret_token.rb
@@ -4,4 +4,4 @@
# 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.
-Hyperarchy::Application.config.secret_token = 'b9406bb7a20b0479e8dd885464251b6c368cab60cbb7e959e927833a4f7359c52864603d040c285343a45af3c1bb7114f59e28b4020615b0d224b5478202a364'
+Hyperarchy::Application.config.secret_token = ENV['RAILS_SECRET_TOKEN']
Please sign in to comment.
Something went wrong with that request. Please try again.