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

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