Change npm start argument to --production (#18478)

* Change npm start argument to --production

* update service with --production

* Reload systemd daemon after updating service file
This commit is contained in:
CerberusStyle
2026-11-05 14:24:44 +00:00
committed by GitHub
parent 215f9be228
commit d2970719e4
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -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!"
+1 -1
View File
@@ -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]