Increasing node memory to 4GB

This commit is contained in:
David Négrier 2020-10-21 15:15:07 +02:00
parent 9ec5dc093c
commit 142e5c3f66
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
"scripts": {
"tsc": "tsc",
"dev": "ts-node-dev --respawn ./server.ts",
"prod": "tsc && node ./dist/server.js",
"prod": "tsc && node --max-old-space-size=4096 ./dist/server.js",
"profile": "tsc && node --prof ./dist/server.js",
"test": "ts-node node_modules/jasmine/bin/jasmine --config=jasmine.json",
"lint": "node_modules/.bin/eslint src/ . --ext .ts",

View File

@ -13,7 +13,7 @@ RoomConnection.setWebsocketFactory((url: string) => {
async function startOneUser(): Promise<void> {
await connectionManager.anonymousLogin(true);
const connection = await connectionManager.connectToRoomSocket('_/global/maps.workadventure.localhost/Floor0/floor0.json', 'TEST', ['male3'],
const connection = await connectionManager.connectToRoomSocket(process.env.ROOM_ID ? process.env.ROOM_ID : '_/global/maps.workadventure.localhost/Floor0/floor0.json', 'TEST', ['male3'],
{
x: 783,
y: 170