Change environment variable to use .env file

This commit is contained in:
Romain PINSOLLE
2025-11-03 08:09:59 +01:00
committed by GitHub
parent a39be2339d
commit 8535e8b357

View File

@@ -58,7 +58,7 @@ Requires=postgresql.service
Type=simple
User=root
WorkingDirectory=/opt/snowshare
Environment=NODE_ENV=production
EnvironmentFile=/opt/snowshare/.env
ExecStart=/usr/bin/npm start
Restart=on-failure
RestartSec=10