diff --git a/ct/jotty.sh b/ct/jotty.sh index a739ca6b6..18a86db4f 100644 --- a/ct/jotty.sh +++ b/ct/jotty.sh @@ -8,7 +8,7 @@ source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxV APP="jotty" var_tags="${var_tags:-tasks;notes}" var_cpu="${var_cpu:-2}" -var_ram="${var_ram:-3072}" +var_ram="${var_ram:-4096}" var_disk="${var_disk:-6}" var_os="${var_os:-debian}" var_version="${var_version:-13}" @@ -45,6 +45,8 @@ function update_script() { msg_info "Updating jotty" cd /opt/jotty + unset NODE_OPTIONS + export NODE_OPTIONS="--max-old-space-size=3072" $STD yarn --frozen-lockfile $STD yarn next telemetry disable $STD yarn build @@ -55,7 +57,7 @@ function update_script() { cp -r .next/static .next/standalone/.next/ mv .next/standalone /tmp/jotty_standalone - rm -rf * .next .git .gitignore .yarn + rm -rf ./* .next .git .gitignore .yarn mv /tmp/jotty_standalone/* . mv /tmp/jotty_standalone/.[!.]* . 2>/dev/null || true rm -rf /tmp/jotty_standalone diff --git a/frontend/public/json/jotty.json b/frontend/public/json/jotty.json index 736525f1f..889d0563a 100644 --- a/frontend/public/json/jotty.json +++ b/frontend/public/json/jotty.json @@ -20,7 +20,7 @@ "script": "ct/jotty.sh", "resources": { "cpu": 2, - "ram": 3072, + "ram": 4096, "hdd": 6, "os": "debian", "version": "13" diff --git a/install/jotty-install.sh b/install/jotty-install.sh index 493b9f198..2ba7e2402 100644 --- a/install/jotty-install.sh +++ b/install/jotty-install.sh @@ -18,6 +18,8 @@ fetch_and_deploy_gh_release "jotty" "fccview/jotty" "tarball" "latest" "/opt/jot msg_info "Installing ${APPLICATION}" cd /opt/jotty +unset NODE_OPTIONS +export NODE_OPTIONS="--max-old-space-size=3072" $STD yarn --frozen-lockfile $STD yarn next telemetry disable $STD yarn build @@ -28,7 +30,7 @@ mkdir -p .next/standalone/.next cp -r .next/static .next/standalone/.next/ mv .next/standalone /tmp/jotty_standalone -rm -rf * .next .git .gitignore .yarn +rm -rf ./* .next .git .gitignore .yarn mv /tmp/jotty_standalone/* . mv /tmp/jotty_standalone/.[!.]* . 2>/dev/null || true rm -rf /tmp/jotty_standalone