| Instructions on generating a secret token - warvox - VoIP based wardialing tool… | |
| Log | |
| Files | |
| Refs | |
| README | |
| --- | |
| commit a98b17c8699b572fe5e568ce6e49f7f8c6ccb7b5 | |
| parent 7748223da0e7688d2db2ef51c03b835ad21e25ff | |
| Author: Jay Scott <[email protected]> | |
| Date: Mon, 5 Sep 2016 11:17:27 +0000 | |
| Instructions on generating a secret token | |
| Diffstat: | |
| M README.md | 4 ++++ | |
| M config/secrets.yml.example | 2 +- | |
| 2 files changed, 5 insertions(+), 1 deletion(-) | |
| --- | |
| diff --git a/README.md b/README.md | |
| @@ -64,6 +64,10 @@ Copy the example secrets configuration to secrets.yml: | |
| $ cp config/secrets.yml.example config/secrets.yml | |
| +Create a new secrect token: | |
| + | |
| + $ rake secret > config/session.key | |
| + | |
| Modify config/database.yml to include the password set previously | |
| Initialize the WarVOX database: | |
| diff --git a/config/secrets.yml.example b/config/secrets.yml.example | |
| @@ -5,4 +5,4 @@ test: | |
| secret_key_base: <%= WarVOX::Config.load_session_key %> | |
| production: | |
| - secret_key_base: <%= ENV["SECRET_KEY_BASE"] %> | |
| + secret_key_base: <%= WarVOX::Config.load_session_key % |