From 40223c0106536488de3182c2578b4cac1b9ab469 Mon Sep 17 00:00:00 2001 From: tteckster Date: Fri, 11 Nov 2022 02:09:54 -0500 Subject: [PATCH] Update zigbee2mqtt-install.sh Add NODE_ENV environment variable to run in production mode --- setup/zigbee2mqtt-install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/setup/zigbee2mqtt-install.sh b/setup/zigbee2mqtt-install.sh index 8631ec2a..7b8e283d 100644 --- a/setup/zigbee2mqtt-install.sh +++ b/setup/zigbee2mqtt-install.sh @@ -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