From d2970719e48e55e41fde86fe3fa46c77ed6f1ddb Mon Sep 17 00:00:00 2001 From: CerberusStyle <4079643+CerberusStyle@users.noreply.github.com> Date: Thu, 5 Nov 2026 14:24:44 +0000 Subject: [PATCH] Change npm start argument to --production (#18478) * Change npm start argument to --production * update service with --production * Reload systemd daemon after updating service file --- ct/planka.sh | 2 ++ install/planka-install.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ct/planka.sh b/ct/planka.sh index 6c3b05316..8caa56cb4 100644 --- a/ct/planka.sh +++ b/ct/planka.sh @@ -80,6 +80,8 @@ function update_script() { msg_ok "Migrated Database" msg_info "Starting Service" + sed -i 's|ExecStart=/usr/bin/npm start --prod$|ExecStart=/usr/bin/npm start --production|' /etc/systemd/system/planka.service + systemctl daemon-reload systemctl start planka msg_ok "Started Service" msg_ok "Updated successfully!" diff --git a/install/planka-install.sh b/install/planka-install.sh index 0db31f12a..f6fdb2fbb 100644 --- a/install/planka-install.sh +++ b/install/planka-install.sh @@ -70,7 +70,7 @@ After=network.target [Service] WorkingDirectory=/opt/planka -ExecStart=/usr/bin/npm start --prod +ExecStart=/usr/bin/npm start --production Restart=always [Install]