octachrome / treason

A clone of the card game Coup written in Node.js
Other
139 stars 79 forks source link

trying to run this on k8s as a 2 tier application #33

Closed lxie123 closed 4 years ago

lxie123 commented 4 years ago

How do I configure this node application to use a different host for the database. I keep getting the following:

I want to run couchdb as a separate container. Failed to initialise database(s) Error: connect ECONNREFUSED 127.0.0.1:5984 at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1141:16) { errno: -111, code: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 5984 }

I want it to use "coup-db" instead of 127.0.0.1

octachrome commented 4 years ago

In server.js:

var connection = new(cradle.Connection)({
    host: 'coup-db'
});
Trevor-Welch commented 4 years ago

Is this issue closed?

octachrome commented 4 years ago

Couch is no longer needed in the latest master.