Skip to content

Commit

Permalink
Update secrets.yml move ENV from yml to .env
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Mikhailov committed Jun 27, 2014
1 parent 8e2d775 commit b8bed71
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 17 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Add your API tokens here
RACK_ENV=development
SECRET_KEY_BASE=development_secret
# ROLLBAR_KEY=your_key_here

2 changes: 1 addition & 1 deletion config/initializers/cookies_serializer.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Be sure to restart your server when you modify this file.

Rails.application.config.action_dispatch.cookies_serializer = :marshal
Rails.application.config.action_dispatch.cookies_serializer = :marshal
24 changes: 8 additions & 16 deletions config/secrets.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,14 @@
# Be sure to restart your server when you modify this file.

# Your secret key is used for verifying the integrity of signed cookies.
# 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.
# You can use `rake secret` to generate a secure secret key.

# Make sure the secrets in this file are kept private
# if you're sharing your code publicly.
default: &default
secret_key_base: <%= ENV['SECRET_KEY_BASE'] %>

development:
secret_key_base: 04235de3ce046facd858d70c9172cdbecd0310a29337ab070f513d14dc38026b3e18bc84f3aaacbb68957c578b2c33406f87faf63f03041d117112493f606e5c
<<: *default

test:
secret_key_base: 3b821fcf01925f8d891446b78618b8258d77c32af0595b6434746802a74c3aab643b05f731c1e365415eab05b0907e4a699f2f74c378fd4a9747e5f89b38e37d
<<: *default

staging:
<<: *default

# Do not keep production secrets in the repository,
# instead read values from the environment.
production:
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
<<: *default

0 comments on commit b8bed71

Please sign in to comment.