Commit 01a5687efefc852f0df1891b8feba103cf4a6d91
Committed by
Dan Croak
1 parent
20564272
Exists in
master
and in
1 other branch
use env vars for all app-specific config
Signed-off-by: Dan Croak <dcroak@thoughtbot.com>
Showing
4 changed files
with
8 additions
and
9 deletions
Show diff stats
config/initializers/google_analytics.rb
config/initializers/hoptoad.rb
config/initializers/session_store.rb
| ... | ... | @@ -5,8 +5,8 @@ |
| 5 | 5 | # Make sure the secret is at least 30 characters and all random, |
| 6 | 6 | # no regular words or you'll be exposed to dictionary attacks. |
| 7 | 7 | ActionController::Base.session = { |
| 8 | - :session_key => "_CHANGEME_session", | |
| 9 | - :secret => "CHANGESESSION" | |
| 8 | + :session_key => ENV['SESSION_KEY'] || "_development_session", | |
| 9 | + :secret => ENV['SESSION_SECRET'] || "acae512910d591e2ab92d82781abc8f52bc723a8cc2124225a89b9e2ed05de875d2ec49c10a585bfcf40f6bfc1385b22578d9cbc7213a2cf61a9a900eaf57cfc" | |
| 10 | 10 | } |
| 11 | 11 | |
| 12 | 12 | # Use the database for sessions instead of the cookie-based default, | ... | ... |
config/s3.yml
| ... | ... | @@ -13,13 +13,11 @@ |
| 13 | 13 | development: &default |
| 14 | 14 | access_key_id: <%= ENV['S3_KEY'] %> |
| 15 | 15 | secret_access_key: <%= ENV['S3_SECRET'] %> |
| 16 | - bucket: CHANGME_development | |
| 16 | + bucket: <%= ENV['S3_BUCKET'] %> | |
| 17 | 17 | |
| 18 | 18 | test: |
| 19 | 19 | <<: *default |
| 20 | - bucket: CHANGME_test | |
| 21 | 20 | |
| 22 | 21 | production: |
| 23 | 22 | <<: *default |
| 24 | - bucket: CHANGME_production | |
| 25 | 23 | ... | ... |