preparing docker

This commit is contained in:
Dobromir Popov
2021-07-29 18:59:49 +03:00
parent 8921fbd5ac
commit b4b6e7f538
7 changed files with 45 additions and 5 deletions

View File

@@ -12,10 +12,10 @@ const config = require(__dirname + '/../../config/config.json')[env];
var pool = mysql.createPool({
connectionLimit : 20,
host : config.host,
user : config.username,
password : config.password,
database : config.database
host : process.env.DATABASE_HOST || config.host || '127.0.0.1',
user : process.env.DATABASE_USER || config.username,
password : process.env.DATABASE_PASS || config.password,
database : process.env.DATABASE_DB || config.database
});
// var con = mysql.createConnection({
// host : 'localhost',