buddycloud/buddycloud-server — Issue #20: server startup problems / postgres
Author: imaginator
Created: 2011-10-22 12:49:09+00:00
State: open

I have configured postgres and it works with the bc schema:

> psql -h localhost --username buddycloud-server -d buddycloud-server -c "select * from nodes;" > Password for user buddycloud-server:
> node
> ------
> (0 rows)

but running the client with the same database config fails:

> $ bin/buddycloud-server
> Postgres: ECONNREFUSED, Connection refused
> Postgres: ECONNREFUSED, Connection refused
> Postgres: ECONNREFUSED, Connection refused
> Postgres: ECONNREFUSED, Connection refused

DB config:

// PostgreSQL backend
exports.modelBackend = 'postgres';
exports.modelConfig = {
host: 'localhost',
port: 5432,
database: 'buddycloud-server',
user: 'buddycloud-server',
password: 'xxxx',
poolSize: 4
};