You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 2, 2024. It is now read-only.
This gem makes it easy to use ejson in applications that are deployed through Capistrano.
Installation
Add this line to your application's Gemfile:
gem'capistrano-ejson','~> 1.0.0'
And then execute:
$ bundle
Or install it yourself as:
$ gem install capistrano-ejson
Usage
Require in Capfile to use the default task:
require'capistrano/ejson'
The task ejson:decrypt will run after deploy:updated.
By default the file config/secrets.ejson will be decrypted to config/secrets.json. You can change this behavior by specifying the following config variables:
By default capistrano-ejson decrypts the secrets file from the machine that does the deploy and then uploads the resulting config to the servers. You can set :ejson_deploy_mode to :remote to perform the decryption remotely, which will run something like ejson decrypt -o config/secrets.json config/secrets.ejson on the remote hosts. If you need to use sudo or bundle exec, you should use the SSHKit command map.
Contributing
Fork it
Create your feature branch (git checkout -b my-new-feature)
Commit your changes (git commit -am 'Add some feature')
Push to the branch (git push origin my-new-feature)