On 17 Sep, 14:52, "Jonathan Weiss" <[EMAIL PROTECTED]> wrote:
> > this task tries to run rake from the db host and clearly it fails.
> > If I set the ":db role" to my webserver it fails because it doesn't
> > find mysql (what I don't understand is why it doesn't take the
> > production database host specified in the database.yml).
>
> > Any ideas?
>
> What is the error message? Check DNS, firewalls, database.yml,...
The error is that it couldn't find rake on that machine (I've
installed just mysqld).
>
> Is `ruby script/console production` working on the webserver?
I don't have ruby installed there...is there any way to run my task
without installing ruby, rake, etc?
What is not clear to me is why running this:
run "cd #{directory}; #{rake} RAILS_ENV=#{rails_env} #{migrate_env}
app:migrate_db DB=production_customer_1"
from my production server, it doesn't get the right host from the
database.yml but it takes localhost. That's strange isn't it?
--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---