-
I was missing
minitest
. By runninggem install rails
, it installed missing dependencies and thus fixed theminitest
error. reference -
Can't
initialize': could not connect to server: Connection refused (PG::Error)
reference
cd /usr/local/var/postgres
mkdir pg_tblspc pg_twophase pg_stat_tmp
pgstop
pgstart
rails -s # Should successfully startup