Deploy config files from other git repository
Add this line to your application's Gemfile:
gem 'capistrano-config-files-deploy'
And then execute:
$ bundle
Or install it yourself as:
$ gem install capistrano-config-files-deploy
Add require to Capfile
require "capistrano/config_files_deploy"
Setting config/deploy.rb
set :config_files_git_url, '[email protected]:username/path-to-private-repository'
set :config_files_revision, 'v1.2.0'
set :config_files, { 'config/env.production' => '.env.production' }
Bug reports and pull requests are welcome on GitHub at https://github.com/fukajun/capistrano-config-files-deploy.