Commit d889ab1c authored by ganjingcun's avatar ganjingcun

remove db config

parent 9b5ab583
...@@ -5,4 +5,4 @@ npm-debug.log ...@@ -5,4 +5,4 @@ npm-debug.log
selenium-debug.log selenium-debug.log
test/unit/coverage test/unit/coverage
test/e2e/reports test/e2e/reports
db.config.js
...@@ -13,15 +13,8 @@ var sqlite3 = require('sqlite3').verbose(); ...@@ -13,15 +13,8 @@ var sqlite3 = require('sqlite3').verbose();
// and client options // and client options
// note: all config is optional and the environment variables // note: all config is optional and the environment variables
// will be read if the config is not present // will be read if the config is not present
var config = {
user: 'mycard', //env var: PGUSER var config = require('../db.config')
database: 'ygopro', //env var: PGDATABASE
password: 'dn8aSm9yAJx23qWn', //env var: PGPASSWORD
host: 'postgres.mycard.moe', // Server hosting the postgres database
port: 5432, //env var: PGPORT
max: 10, // max number of clients in the pool
idleTimeoutMillis: 30000, // how long a client is allowed to remain idle before being closed
}
//this initializes a connection pool //this initializes a connection pool
//it will keep idle connections open for a 30 seconds //it will keep idle connections open for a 30 seconds
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment