I was able to use your suggestion, it works great now!

Thanks Keith!
James

heres my abbreviated form, for posterity...

<!-- Capfile -->
before "deploy:setup", :db
after "deploy:update_code", "db:symlink"

namespace :db do
   desc "Make symlink for database yaml based on production db type."
   task :symlink do
     run "ln -nfs #{release_path}/config/#{db_type}.database.yml 
#{release_path}/
config/database.yml"
   end
end

<!-- config/deploy.rb -->
# production database config
set :db_type, "mysql" #sqlite3|mysql

Keith Pitty wrote:
> James,
> 
> I suggest you try something like the following. 
> 
> Keith

--~--~---------~--~----~------------~-------~--~----~
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