Created
July 10, 2017 00:40
-
-
Save juanhuttemann/b8f6d7b97b1d68e9d7cc03f8f16fa269 to your computer and use it in GitHub Desktop.
Adds Rails Secret Key to user profile as Env Variable
This file contains hidden or 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
#!/bin/bash | |
OUTPUT="$(rails secret RAILS_ENV=production)" | |
SECRET="SECRET_KEY_BASE=${OUTPUT}" | |
echo $SECRET >> ~/.profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment