Skip to content
Snippets Groups Projects
Commit 222c219c authored by atm2g19's avatar atm2g19
Browse files

updated dbconf

parent 5f894c03
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@ import { debug } from "./debug";
import { Game, GameConstructor } from "./games/game";
import { resolve } from "dns";
import { GameDB } from "./gamedb";
import { readFileSync } from "fs";
const DB = {
active_games : {
......@@ -43,12 +44,7 @@ const DB = {
}
}
const MYSQL_CONFIG : mysql.ConnectionConfig = {
host : "localhost",
user : "web-games",
password : "web-games-password",
database : "web_games_db"
}
const MYSQL_CONFIG : mysql.ConnectionConfig = JSON.parse(readFileSync("./dbconf.json").toString());
const Games : GameDB = new GameDB(MYSQL_CONFIG);
// POOL.getConnection((err) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment