Skip to content

Instantly share code, notes, and snippets.

@yctay
Created April 30, 2013 05:34
Show Gist options
  • Star 24 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
  • Save yctay/5486755 to your computer and use it in GitHub Desktop.
Save yctay/5486755 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 :finalize do
run "ln -sf #{shared_path}/application.yml #{release_path}/config/application.yml"
end
end
@pcanterini
Copy link

thanks for sharing buddy.

@prem-prakash
Copy link

thanks

@patte
Copy link

patte commented Nov 27, 2013

thank you very much. I updated it to work with capistrano >= 3.0
https://gist.github.com/patte/7684360#file-figaro-capistrano-rb

@mhui
Copy link

mhui commented Jan 10, 2014

Thanks for posting

@cloudyora
Copy link

for task :finalize, just add config/application.yml to :linked_files would do

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment