This repository has been archived by the owner on Mar 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle Secrets With Environment Variables
Enables deploying directly from the public repo securely, so long as you specify the RAILS_SECRET_TOKEN environment variable on the target app servers. The development and test secret tokens are obviously garbage, but will do for local testing.
- Loading branch information
Showing
3 changed files
with
16 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,4 @@ | |
|
||
# Ignore all logfiles and tempfiles. | ||
/log/*.log | ||
/tmp | ||
|
||
# Do not include secrets. | ||
/config/secrets.yml | ||
/tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
development: | ||
secret_key_base: 'devdevdevdevdevdevdevdevdevdev' | ||
|
||
test: | ||
secret_key_base: 'testtesttesttesttesttesttesttest' | ||
|
||
production: | ||
secret_key_base: ENV['RAILS_SECRET_TOKEN'] |