Created
April 30, 2013 05:34
-
-
Save yctay/5486755 to your computer and use it in GitHub Desktop.
Capistrano recipe for deploying figaro's application.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
for task :finalize, just add config/application.yml to :linked_files would do