|
|
|
@ -28,9 +28,8 @@ const games = {
|
|
|
|
dir: "../../../../NNG4",
|
|
|
|
dir: "../../../../NNG4",
|
|
|
|
queueLength: 5
|
|
|
|
queueLength: 5
|
|
|
|
},
|
|
|
|
},
|
|
|
|
"g/local/game": {
|
|
|
|
"g/dev/container": {
|
|
|
|
dir: "../../../../game",
|
|
|
|
dir: "../../../../game",
|
|
|
|
queueLength: 5
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -111,6 +110,10 @@ wss.addListener("connection", function(ws, req) {
|
|
|
|
const repo = reRes[2]
|
|
|
|
const repo = reRes[2]
|
|
|
|
const tag = `g/${owner.toLowerCase()}/${repo.toLowerCase()}`
|
|
|
|
const tag = `g/${owner.toLowerCase()}/${repo.toLowerCase()}`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (isDevelopment && process.env.DEV_CONTAINER) {
|
|
|
|
|
|
|
|
tag = `g/dev/container`
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
let ps;
|
|
|
|
let ps;
|
|
|
|
if (!queue[tag] || queue[tag].length == 0) {
|
|
|
|
if (!queue[tag] || queue[tag].length == 0) {
|
|
|
|
ps = startServerProcess(tag)
|
|
|
|
ps = startServerProcess(tag)
|
|
|
|
|