Skip to content

Instantly share code, notes, and snippets.

@mhui
Last active January 28, 2019 08:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mhui/8347938 to your computer and use it in GitHub Desktop.
Save mhui/8347938 to your computer and use it in GitHub Desktop.
Capistrano recipe for deploying figaro's application.yml
namespace :figaro do
desc "SCP transfer figaro configuration to the shared folder"
task :setup do
transfer :up, "config/application.yml", "#{shared_path}/application.yml", :via => :scp
end
desc "Symlink application.yml to the release path"
task :symlink do
run "ln -sf #{shared_path}/application.yml #{current_path}/config/application.yml"
end
end
after "deploy", "figaro:setup"
after "deploy", "figaro:symlink"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment