Reinit server after database config

This commit is contained in:
Thomas FORGIONE 2015-05-18 11:34:11 +02:00
parent e3053c785d
commit 964482afcd
1 changed files with 0 additions and 9 deletions

View File

@ -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\')');
});