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