Does capistrano do migrations?

Hi,

I am just beginning to use capistrano. When I run ‘rake deploy’, should
Capistrano run migrations on the remote production database
automatically? If no, can I configure it to do so? Or what is the best
practices way of doing it? Currently, i am SSHing into my remote server
after running ‘rake deploy’ and running the migrations manually.

Ingo

try:

rake remote:exec ACTION=“deploy_with_migrations”

On 10/5/06, Ingo W. [email protected] wrote:


Posted via http://www.ruby-forum.com/.


Charles Brian Q.
self-promotion: www.seebq.com
highgroove studios: www.highgroove.com
slingshot hosting: www.slingshothosting.com

Charles Brian Q. wrote:

try:

rake remote:exec ACTION=“deploy_with_migrations”

Or just

rake remote:deploy_with_migrations

Chris

Ingo W. wrote:

If you put the command “migrate” in your :after_update_code task in your
deploy script, Capistrano will do a migrate for you.

Jamey

Thanks a lot for all the suggestions!

Ingo

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs