Skip to content

Feature proposal: Uploading master.key #231

@brendon

Description

@brendon

I currently have the following in my deploy configuration:

append :linked_files, "config/master.key"

namespace :deploy do
  namespace :check do
    before :linked_files, :set_master_key do
      on roles(:app), in: :sequence, wait: 10 do
        unless test("[ -f #{shared_path}/config/master.key ]")
          upload! 'config/master.key', "#{shared_path}/config/master.key"
        end
      end
    end
  end
end

I was wondering if you'd be interested in integrating this into the capistrano-rails gem? (obviously with more options around whether this should happen or not per if the file actually exists locally.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions