Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/digineo/secret_token_replacer
Rake task and capistrao recipe to replace the secret token of your rails configuration
https://github.com/digineo/secret_token_replacer
Last synced: 6 days ago
JSON representation
Rake task and capistrao recipe to replace the secret token of your rails configuration
- Host: GitHub
- URL: https://github.com/digineo/secret_token_replacer
- Owner: digineo
- License: mit
- Created: 2012-03-18T18:17:29.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-03-18T18:38:45.000Z (over 12 years ago)
- Last Synced: 2023-04-10T15:07:37.817Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 99.6 KB
- Stars: 5
- Watchers: 6
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
Awesome Lists containing this project
README
Secret Token Replacer
=====================This gem helps you to replace the secret token of your rails 3.x application.
It contains a rake task to replace the secret token in your `config/initializers/secret_token.rb` and a capistrano recipe that generates and symlinks the secret token during deployment.Installation
------------Add this repository to your gemfile:
gem 'secret_token_replacer', :git => 'git://github.com/digineo/secret_token_replacer.git'
And require the recipes in your config/deploy.rb:
require 'secret_token_replacer/recipes'
That's it!
Added tasks
-----------This rake task replaces the secret token in your configuration:
rake secret:replace
This capistrano task replaces and symlinks the secret_token.rb during deployment:
cap deploy:symlink_secret
It will be automatically executed after the `deploy:update` task.
License
-------
Copyright © 2012 Digineo GmbH, released under the MIT license.