Re: rails with postgresql

Mauro Cicio
2011-02-01T08:01:55Z

:migrate
> rake aborted!
> could not connect to server: No such file or directory
>         Is the server running locally and accepting
>         connections on Unix domain socket
"/var/run/postgresql/.s.PGSQL.
> 5432"?

It is looking for the domain socket in
/var/run/postgresql/.s.PGSQL.5432.

Go in /var/run/postgresql/ and
ln -s wherever/your/domain/socket/is/.s.PGSQL.5432 .

You can find the socket with a global search, like

find / -name .s.PGSQL.\*

The above will fix the issue, but a more definitive solution would be to
point rails to the right location of the domain socket (I am just
looking how to do it myself!)

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