Update zigbee2mqtt-install.sh

Add NODE_ENV environment variable to run in production mode
This commit is contained in:
tteckster 2022-11-11 02:09:54 -05:00 committed by GitHub
parent bd59aa04a2
commit 40223c0106
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -116,6 +116,7 @@ echo "[Unit]
Description=zigbee2mqtt
After=network.target
[Service]
Environment=NODE_ENV=production
ExecStart=/usr/bin/npm start
WorkingDirectory=/opt/zigbee2mqtt
StandardOutput=inherit