Forum: Ruby on Rails SwitchTower remote_exec migrate

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Dcbf676f860477e44b275cae5d6318a4?d=identicon&s=25 Piotr Usewicz (lopmx)
on 2006-02-23 22:43
(Received via mailing list)
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
992fe8c19bbbc27f2b562a9f96efc03d?d=identicon&s=25 Jamis Buck (Guest)
on 2006-02-24 01:12
(Received via mailing list)
On Feb 23, 2006, at 2:43 PM, Piotr Usewicz 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
Dcbf676f860477e44b275cae5d6318a4?d=identicon&s=25 Piotr Usewicz (lopmx)
on 2006-02-24 08:16
(Received via mailing list)
> 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.
This topic is locked and can not be replied to.