finalized automated build for web
This commit is contained in:
3
main-web/server/.gitignore
vendored
3
main-web/server/.gitignore
vendored
@@ -1,3 +1,4 @@
|
||||
admin/
|
||||
client/
|
||||
build/
|
||||
build/
|
||||
.env
|
||||
@@ -13,6 +13,7 @@
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"cors": "^2.8.5",
|
||||
"dotenv": "^8.2.0",
|
||||
"express": "^4.17.1",
|
||||
"mysql": "^2.18.1",
|
||||
"socket.io": "^2.3.0",
|
||||
|
||||
@@ -3,10 +3,12 @@ import socketIo from 'socket.io';
|
||||
import http from 'http';
|
||||
import cors from 'cors';
|
||||
import mysql from 'mysql';
|
||||
import dotenv from 'dotenv';
|
||||
import { v1 } from 'uuid';
|
||||
|
||||
import { IJankenSelect, IJankenResult } from './models/message';
|
||||
|
||||
dotenv.config();
|
||||
const port: number = 8080;
|
||||
const app: express.Express = express();
|
||||
const httpServer: http.Server = http.createServer(app);
|
||||
@@ -16,9 +18,9 @@ const tournaments: Record<string, number> = {};
|
||||
const players: Record<string, number> = {};
|
||||
const connection = mysql.createPool({
|
||||
connectionLimit: 10,
|
||||
host: 'test-db.csmrqtei38qi.ap-northeast-1.rds.amazonaws.com',
|
||||
user: 'admin',
|
||||
password: '12341234',
|
||||
host: 'catherine-fc.csmrqtei38qi.ap-northeast-1.rds.amazonaws.com',
|
||||
user: process.env.DB_USER,
|
||||
password: process.env.DB_PASS,
|
||||
database: 'catherine_league'
|
||||
});
|
||||
connection.query(
|
||||
|
||||
Reference in New Issue
Block a user