1
0
mirror of https://github.com/community-scripts/ProxmoxVE.git synced 2025-04-19 19:08:06 +00:00

Memos: Increase RAM Usage and max space (#3072)

This commit is contained in:
CanbiZ 2025-03-14 18:50:27 +01:00 committed by GitHub
parent 66c4d0e03f
commit 4cc1ab728c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 4 deletions

View File

@ -8,7 +8,7 @@ source <(curl -s https://raw.githubusercontent.com/community-scripts/ProxmoxVE/m
APP="Memos" APP="Memos"
var_tags="notes" var_tags="notes"
var_cpu="2" var_cpu="2"
var_ram="2048" var_ram="3072"
var_disk="7" var_disk="7"
var_os="debian" var_os="debian"
var_version="12" var_version="12"
@ -36,6 +36,7 @@ function update_script() {
exit exit
fi fi
systemctl stop memos systemctl stop memos
export NODE_OPTIONS="--max-old-space-size=2048"
cd /opt/memos/web cd /opt/memos/web
$STD pnpm i --frozen-lockfile $STD pnpm i --frozen-lockfile
$STD pnpm build $STD pnpm build

View File

@ -52,7 +52,8 @@ msg_ok "Installed Golang"
msg_info "Installing Memos (Patience)" msg_info "Installing Memos (Patience)"
mkdir -p /opt/memos_data mkdir -p /opt/memos_data
$STD sudo git clone https://github.com/usememos/memos.git /opt/memos export NODE_OPTIONS="--max-old-space-size=2048"
$STD git clone https://github.com/usememos/memos.git /opt/memos
cd /opt/memos/web cd /opt/memos/web
$STD pnpm i --frozen-lockfile $STD pnpm i --frozen-lockfile
$STD pnpm build $STD pnpm build

View File

@ -19,7 +19,7 @@
"script": "ct/memos.sh", "script": "ct/memos.sh",
"resources": { "resources": {
"cpu": 2, "cpu": 2,
"ram": 2048, "ram": 3072,
"hdd": 7, "hdd": 7,
"os": "debian", "os": "debian",
"version": "12" "version": "12"