modified to auto upload to s3

This commit is contained in:
2020-08-09 15:24:09 +09:00
parent 9992386624
commit 2fa6740aac
3 changed files with 12 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
admin/
client/
build/
.env
.env*

View File

@@ -16,9 +16,11 @@ const io: socketIo.Server = socketIo(httpServer);
const tournaments: Record<string, number> = {};
const players: Record<string, number> = {};
console.log(process.env.DB_ENDPOINT);
const connection = mysql.createPool({
connectionLimit: 10,
host: 'catherine-fc.csmrqtei38qi.ap-northeast-1.rds.amazonaws.com',
port: (process.env.DB_PORT ? parseInt(process.env.DB_PORT, 10) : 3306),
host: process.env.DB_ENDPOINT,
user: process.env.DB_USER,
password: process.env.DB_PASS,
database: 'catherine_league'