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