Search code examples
ruby-on-railsrubypostgresqlpgbluehost

BlueHost - No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"


I am currently trying to run my application on BlueHost.

I already clone, setup, and install the application.

When I tried rails s the application can running on http://my.domain.com:3000

But it's return

could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?

I am using PG for the database but I am not sure why this happens.


Solution

  • After did some research this is happen because I need to reconfigure PG user and database manually. And it working like charms. Thanks a lot guys.