[Rails] Subversion and Capistrano

bradley taylor
2006-04-30T14:41:54Z

Hi Al,

You could use a task that uploads database.yml after your code is
checked out on the server.

desc "Update code outside of svn."
task :after_update_code do
   put File.read("config/database.yml"), "#{release_path}/config/
database.yml", :mode => 0400
end

Good luck,
Bradley Taylor

------
Rails Machine
Simplified web application deployment
http://railsmachine.com


On Apr 30, 2006, at 10:04 AM, Al Evans wrote:

> I have a project under Subversion, deployed by Capistrano.
>
> When it is deployed, obviously I need to deploy "real" copies of
> database.yml, deploy.rb, and maybe a couple of other files.
>
> But if I offer it for public checkout, I obviously do not want these
> files as part of the checked out code.
>
> What''s the best way to handle this?
>
> --Al Evans
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails