Skip to content

Commit 86577a0

Browse files
authored
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
1 parent 4ae0352 commit 86577a0

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

ct/actualbudget.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxV
88
APP="Actual Budget"
99
var_tags="finance"
1010
var_cpu="2"
11-
var_ram="2048"
12-
var_disk="4"
11+
var_ram="8192"
12+
var_disk="7"
1313
var_os="debian"
1414
var_version="12"
1515
var_unprivileged="1"
@@ -84,6 +84,7 @@ ACTUAL_HTTPS_CERT=/opt/actualbudget/selfhost.crt
8484
EOF
8585
fi
8686
cd /opt/actualbudget || exit
87+
export NODE_OPTIONS="--max_old_space_size=4096"
8788
$STD yarn install
8889
$STD yarn run build:server
8990
#$STD yarn workspaces focus @actual-app/sync-server --production

frontend/public/json/actualbudget.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
"script": "ct/actualbudget.sh",
2020
"resources": {
2121
"cpu": 2,
22-
"ram": 2048,
23-
"hdd": 4,
22+
"ram": 8192,
23+
"hdd": 7,
2424
"os": "debian",
2525
"version": "12"
2626
}

install/actualbudget-install.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ ACTUAL_HTTPS_KEY=/opt/actualbudget/selfhost.key
5555
ACTUAL_HTTPS_CERT=/opt/actualbudget/selfhost.crt
5656
EOF
5757
cd /opt/actualbudget || exit
58+
export NODE_OPTIONS="--max_old_space_size=4096"
5859
$STD yarn install
5960
$STD yarn run build:server
6061
$STD openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout selfhost.key -out selfhost.crt <<EOF

0 commit comments

Comments
 (0)