Postgresql adapter (pg): could not connect to server March 6, 2023 by Tarik Try adding host: localhost to your database.yml. (Based on: https://stackoverflow.com/a/10793186/919641)