Thanks a lot. I'm still learning Capistrano, I hadn't read there was an after method. Now I'm happier to know what to read next.

Thanks.
Manuel.


On 05/13/2011 09:49 AM, Lee Hambley wrote:
The normal way is to put them (manually, or using your provisioning tool) into ./shared/config/ - make this a one-time thing, and ensure that some time after deploy:update_code that they are symlinked to the correct place, here's a snippet from my deploy.rb:

# Links the development yml file
after "deploy:finalize_update" do
run "ln -s #{shared_path}/config/database.yml #{latest_release}/config/database.yml"
end

Note, this task is inlined, (it's not a real `named` task) - but it works perfectly for me… (also, the syntax for ln could be a little shorter, but I wanted to make clear the behaviour)

- Lee
--
* You received this message because you are subscribed to the Google Groups "Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/capistrano?hl=en

--
* You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to 
[email protected] For more options, visit this group at 
http://groups.google.com/group/capistrano?hl=en

Reply via email to