No commit activity in last 3 years
No release in over 3 years
Capistrano tasks for automating `master.key` file handling for Rails 5.2+ apps. This plugins syncs contents of your local master key and copies that to the remote server.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 12.3

Runtime

~> 3.11
~> 1.17
 Project Readme

Capistrano:MasterKey

Capistrano tasks for handling master.key when deploying Rails 5.2+ apps.

Install

Add this to Gemfile:

group :development do
  gem 'capistrano', '~> 3.11.0'
  gem 'capistrano-master-key', '~> 1.0.0'
end

And then:

$ bundle install

Setup and usage

  • Make sure your local config/master.key is not git tracked. It should be on the disk, but gitignored.

  • Add to Capfile:

      require 'capistrano/master_key'
    
  • Add your master_key_local_path setting to your deploy.rb file (or wherever you need if you have multi-repo setup)

    `set :master_key_local_path, "/home/myname/mycode/repo_path/config/master.key"

  • You will have now a working master_key:setup

License

MIT