PostgreSQL
 SQL >> Database >  >> RDS >> PostgreSQL

Configurare PostgreSQL su macOS con Postgres.app e Rails

Se Rails non trova il server, probabilmente sta cercando un socket Unix che Postgres.app non usa. Puoi forzare la connessione TCP in database.yml:

development:
  adapter: postgresql
  encoding: unicode
  database: my_app_development
  pool: 5
  username: tony
  password: stark
  host: localhost
  port: 5432

Con host: localhost Rails evita il socket mancante.