mirror of
https://github.com/AlecM33/Werewolf.git
synced 2025-12-26 07:47:50 +01:00
more google cloud configuration
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -3,4 +3,3 @@ node_modules/*
|
||||
client/certs/
|
||||
client/dist/
|
||||
.vscode/launch.json
|
||||
package-lock.json
|
||||
|
||||
3
app.yaml
3
app.yaml
@@ -1 +1,4 @@
|
||||
runtime: nodejs14
|
||||
entrypoint: npm run start:prod:linux
|
||||
automatic_scaling:
|
||||
max_instances: 1
|
||||
|
||||
3446
package-lock.json
generated
Normal file
3446
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -4,12 +4,13 @@
|
||||
"description": "",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build:dev": "npx webpack --config client/webpack/webpack-dev.config.js --mode=development",
|
||||
"build:prod": "npx webpack --config client/webpack/webpack-prod.config.js --mode=production",
|
||||
"bundle": "webpack --config client/webpack/webpack-prod.config.js",
|
||||
"prestart": "npm run bundle",
|
||||
"build:dev": "webpack --watch --config client/webpack/webpack-dev.config.js --mode=development",
|
||||
"start:dev:linux": "NODE_ENV=development node server/main.js",
|
||||
"start:dev": "SET NODE_ENV=development && node server/main.js",
|
||||
"start:prod:linux": "NODE_ENV=production node server/main.js",
|
||||
"start:prod": "SET NODE_ENV=production && node server/main.js",
|
||||
"start:prod:linux": "NODE_ENV=production node server/main.js -- loglevel=warn port=8080",
|
||||
"start:prod": "SET NODE_ENV=production && node server/main.js -- loglevel=warn port=8080",
|
||||
"test": "jasmine && node browsertest.js openBrowser socket",
|
||||
"test:unit": "jasmine",
|
||||
"test:e2e": "node browsertest.js"
|
||||
|
||||
@@ -70,7 +70,8 @@ const inGame = io.of('/in-game');
|
||||
|
||||
|
||||
/* Instantiate the singleton game manager */
|
||||
const gameManager = new GameManager(logger, environment).getInstance();
|
||||
//const gameManager = new GameManager(logger, environment).getInstance();
|
||||
const gameManager = new GameManager(logger, globals.ENVIRONMENT.LOCAL).getInstance(); // temporary
|
||||
|
||||
/* Instantiate the singleton queue manager */
|
||||
//const queueManager = new QueueManager(matchmaking, logger).getInstance();
|
||||
|
||||
@@ -8,28 +8,29 @@ module.exports = function (logLevel = globals.LOG_LEVEL.INFO) {
|
||||
console.log('LOG ', now.toGMTString(), ': ', message);
|
||||
},
|
||||
|
||||
error (message = '') {
|
||||
if (
|
||||
logLevel === globals.LOG_LEVEL.INFO
|
||||
) { return; }
|
||||
const now = new Date();
|
||||
console.error('ERROR ', now.toGMTString(), ': ', message);
|
||||
},
|
||||
|
||||
warn (message = '') {
|
||||
if (logLevel === globals.LOG_LEVEL.INFO) return;
|
||||
if (
|
||||
logLevel === globals.LOG_LEVEL.INFO
|
||||
|| logLevel === globals.LOG_LEVEL.ERROR
|
||||
) return;
|
||||
const now = new Date();
|
||||
console.error('WARN ', now.toGMTString(), ': ', message);
|
||||
},
|
||||
|
||||
debug (message = '') {
|
||||
if (logLevel === globals.LOG_LEVEL.INFO || logLevel === globals.LOG_LEVEL.WARN) return;
|
||||
if (logLevel === globals.LOG_LEVEL.INFO || logLevel === globals.LOG_LEVEL.ERROR || logLevel === globals.LOG_LEVEL.WARN) return;
|
||||
const now = new Date();
|
||||
console.debug('DEBUG ', now.toGMTString(), ': ', message);
|
||||
},
|
||||
|
||||
error (message = '') {
|
||||
if (
|
||||
logLevel === globals.LOG_LEVEL.INFO
|
||||
|| logLevel === globals.LOG_LEVEL.WARN
|
||||
|| logLevel === globals.LOG_LEVEL.DEBUG
|
||||
) { return; }
|
||||
const now = new Date();
|
||||
console.error('ERROR ', now.toGMTString(), ': ', message);
|
||||
},
|
||||
|
||||
trace(message = '') {
|
||||
if (
|
||||
logLevel === globals.LOG_LEVEL.INFO
|
||||
|
||||
Reference in New Issue
Block a user