SwitchTower remote_exec migrate

Hello

I'm doing rake remote_exec ACTION=migrate and I get an output with

servers []:

loading configuration
c:/ruby/lib/ruby/gems/1.8/gems/switchtower-0.10.0/lib/switchtower/recipes/standard.rb
loading configuration ./config/deploy.rb
executing task migrate
executing “cd /var/www/catalyst/current && rake RAILS_ENV=production
migrate”
servers: []
processing command
command finished

Every other task works as expected. Why does not migrate work?

Peter

On Feb 23, 2006, at 2:43 PM, Piotr U. wrote:

RAILS_ENV=production migrate"
servers: []
processing command
command finished

Every other task works as expected. Why does not migrate work?

Peter

It looks like you might not have any servers in the db role,
with :primary => true set. Migrate will only work on your primary db
server.

role :db, “foo.server.com”, :primary => true

You need to specify :primary => true even if it is your only db server.

  • Jamis

It looks like you might not have any servers in the db role, with
:primary => true set. Migrate will only work on your primary db server.

role :db, “foo.server.com”, :primary => true

You need to specify :primary => true even if it is your only db server.

  • Jamis

Oh, I knew I had something wrong with my SwitchTower configuration.
Thanks Jamis.