Skip to content

Instantly share code, notes, and snippets.

@zinovyev
Created April 22, 2019 11:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zinovyev/cae7e9e1b47d4ae56bdb04445734a718 to your computer and use it in GitHub Desktop.
Save zinovyev/cae7e9e1b47d4ae56bdb04445734a718 to your computer and use it in GitHub Desktop.
Generate new `secrets.yml` for rails
bundle exec rake secret | \
awk '{ print "development:\n secret_key_base: "$1"\nstaging:\n secret_key_base: "$1"\nproduction:\n secret_key_base: "$1 }' | \
cat > config/secrets.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment