From 964482afcd9a2284807049574a252fa672ec5b50 Mon Sep 17 00:00:00 2001 From: Thomas FORGIONE Date: Mon, 18 May 2015 11:34:11 +0200 Subject: [PATCH] Reinit server after database config --- server.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/server.js b/server.js index 01ede7f..cbfa750 100644 --- a/server.js +++ b/server.js @@ -55,12 +55,3 @@ if ( app.get('env') === 'development' ) { console.log("Starting server on " + server_ip_address + ":" + server_port); app.listen(server_port, server_ip_address); - -console.log("Trying to connect to the db..."); -pg.connect(pgc.url, function(err, client, done) { - if (err) { - return console.error('error fetching client from pool', err); - } - - client.query('INSERT INTO users(name) VALUES(\'Hello\')'); -});