mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2026-11-13 17:31:02 +00:00
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:
1 parent
215f9be228
commit
d2970719e4
2 files changed
+3
-1
No files matched your search
@@ -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!"
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in new issue
Block a user