From 54e0689d3005847cf5f61cf69053e5c507986c10 Mon Sep 17 00:00:00 2001 From: wancat Date: Sat, 26 Aug 2023 11:11:13 +0800 Subject: [PATCH] fix: remove mounting at production error --- server/src/containers/docker.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/src/containers/docker.js b/server/src/containers/docker.js index 4c9f989..b687897 100644 --- a/server/src/containers/docker.js +++ b/server/src/containers/docker.js @@ -13,12 +13,12 @@ const containerOptions = { StdinOnce: false, HostConfig: { Binds: - config.isProduction && config.hostPwd - ? [] - : [ + !config.isProduction && config.hostPwd + ? [ `${config.hostPwd}/quests/helloworld/home:/home/rudeus`, `${config.hostPwd}/packages/container:/usr/local/lib/container`, - ], + ] + : [], }, }