The host/port must be accessible from the perspective of where the task (rake db:migrate) is running, which will be on the server that you've designated to be in role :db.
- Jamis On 9/1/07, eggie5 <[EMAIL PROTECTED]> wrote: > > This is a fresh debian install inside of parallels with all the > appropriate gems installed ( i believe). I have the postgres gem. > > This is my production config: > > production: > adapter: postgresql > database: mms-service_production > username: postgres > password: > host: localhost > > Now that I think about it I'm kinda confused on this. Is host supposed > to be set from the perspective from the dev machine or the prod. > machine? The above is from the prod. machine's perspective. > > I'm just doing this for myself to learn so I'm just using the default > postgres account posgtres sql sets up. > > Heres what cap deploy:migrate give me, what do I do? > > alex-eggs-computer:~/sites/service eggie5$ cap deploy:migrate > * executing `deploy:migrate' > * executing "ls -x /u/apps/service/releases" > servers: ["192.168.1.110"] > Password: > [192.168.1.110] executing command > command finished > * executing "cd /u/apps/service/releases/20070901175804; rake > RAILS_ENV=production db:migrate" > servers: ["192.168.1.110"] > [192.168.1.110] executing command > ** [out :: 192.168.1.110] (in /u/apps/service/releases/ > 20070901175804) > ** [out :: 192.168.1.110] rake aborted! > ** [out :: 192.168.1.110] > ** [out :: 192.168.1.110] could not connect to server: Connection > refused > ** [out :: 192.168.1.110] Is the server running on host "localhost" > and accepting > ** [out :: 192.168.1.110] TCP/IP connections on port 5432? > ** [out :: 192.168.1.110] > ** [out :: 192.168.1.110] (See full trace by running task with -- > trace) > ** [out :: 192.168.1.110] > command finished > command "cd /u/apps/service/releases/20070901175804; rake > RAILS_ENV=production db:migrate" failed on 192.168.1.110 > > > > > --~--~---------~--~----~------------~-------~--~----~ To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/capistrano -~----------~----~----~----~------~----~------~--~---
