From 86577a0d0d6bdb7f204fa0765c8fe046f3efa834 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 7 Apr 2025 09:06:46 +0200 Subject: [PATCH] Actual: Increase RAM and add heap-space var for nodejs (#3713) * Actual: Increase RAM and add heap-space var for nodejs * Update actualbudget.json * increase hdd size * node options --- ct/actualbudget.sh | 5 +++-- frontend/public/json/actualbudget.json | 4 ++-- install/actualbudget-install.sh | 1 + 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ct/actualbudget.sh b/ct/actualbudget.sh index 075a90c87..ba6326f3f 100644 --- a/ct/actualbudget.sh +++ b/ct/actualbudget.sh @@ -8,8 +8,8 @@ source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxV APP="Actual Budget" var_tags="finance" var_cpu="2" -var_ram="2048" -var_disk="4" +var_ram="8192" +var_disk="7" var_os="debian" var_version="12" var_unprivileged="1" @@ -84,6 +84,7 @@ ACTUAL_HTTPS_CERT=/opt/actualbudget/selfhost.crt EOF fi cd /opt/actualbudget || exit + export NODE_OPTIONS="--max_old_space_size=4096" $STD yarn install $STD yarn run build:server #$STD yarn workspaces focus @actual-app/sync-server --production diff --git a/frontend/public/json/actualbudget.json b/frontend/public/json/actualbudget.json index 215524079..5005a135e 100644 --- a/frontend/public/json/actualbudget.json +++ b/frontend/public/json/actualbudget.json @@ -19,8 +19,8 @@ "script": "ct/actualbudget.sh", "resources": { "cpu": 2, - "ram": 2048, - "hdd": 4, + "ram": 8192, + "hdd": 7, "os": "debian", "version": "12" } diff --git a/install/actualbudget-install.sh b/install/actualbudget-install.sh index 57509a2a4..a226f3b34 100644 --- a/install/actualbudget-install.sh +++ b/install/actualbudget-install.sh @@ -55,6 +55,7 @@ ACTUAL_HTTPS_KEY=/opt/actualbudget/selfhost.key ACTUAL_HTTPS_CERT=/opt/actualbudget/selfhost.crt EOF cd /opt/actualbudget || exit +export NODE_OPTIONS="--max_old_space_size=4096" $STD yarn install $STD yarn run build:server $STD openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout selfhost.key -out selfhost.crt <