I tried to dig through the standard.rb, deploy.rb, and other standard
rails recipies to figure out what variable i should use to correctly
extend the default update procedure (using before or after filter) so
that before migrations or even updating symlink, assure that
mysql.database.yml gets moved to database.yml
i came up with this:
namespace :deploy do
task :before_finalize_update do
run "cp #{latest_release}/config/mysql.database.yml
#{latest_releast}/config/database.yml"
run "cd #{latest_release} && rake db:create:all"
end
end
it worked like a charm on the deploy:cold. but after that, obviously
the db:create:all wasnt needed.
also after that sometime when running other tasks the
"#{latest_release}" didn't exist and everything failed....
maybe someone could help me out with a suggestion. havent found much
in the way of extending with before, after filters on google
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---