Probably the best way to do this with Capistrano is to save all the
files in git, but with server-specific names (e.g., database.yml.app01,
database.yml.app02, etc.). Then, you could write a task to run after
deploy:update_code that symlinks the database.yml to the appropriate
value for the server. Something like:

  task :symlink_database_yml do
    run "ln -nsf #{current_path}/config/database.yml.$CAPISTRANO:HOST$
#{current_path}/config/database.yml"
  end

  after "deploy:update_code", "symlink_database_yml"

- Jamis

On 1/20/09 12:27 AM, Andres Rodriguez wrote:
> Hi, since I have multiple apps of the same type deployed to different
> servers I have a specific version of files database.yml in each
> deploy.
> 
> The normal way to save these files would be to use git stash and then
> git stash apply after checking out new code.
> 
> Is there a way to do this with capistrano? I haven't found a way yet.
> 
> Thanks for any help.
> 
> > 


--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to