fix script
This commit is contained in:
@@ -6,7 +6,7 @@ After=network.target
|
||||
Type=simple
|
||||
User=www-data
|
||||
Group=www-data
|
||||
WorkingDirectory=/opt/kspguti-schedule
|
||||
WorkingDirectory=/opt/kspguti-schedule/.next/standalone
|
||||
Environment=NODE_ENV=production
|
||||
Environment=NEXT_TELEMETRY_DISABLED=1
|
||||
Environment=PORT=3000
|
||||
@@ -16,11 +16,11 @@ Environment=HOSTNAME=0.0.0.0
|
||||
# Environment=PARSING_FAILURE_NOTIFICATIONS_TELEGRAM_BOTAPI_TOKEN=your_token_here
|
||||
# Environment=PARSING_FAILURE_NOTIFICATIONS_TELEGRAM_CHAT_ID=your_chat_id_here
|
||||
|
||||
# Load environment variables from file (optional)
|
||||
# EnvironmentFile=/opt/kspguti-schedule/.env
|
||||
# Load environment variables from file
|
||||
EnvironmentFile=/opt/kspguti-schedule/.env
|
||||
|
||||
# Use standalone server from Next.js build
|
||||
ExecStart=/usr/bin/node /opt/kspguti-schedule/.next/standalone/server.js
|
||||
ExecStart=/usr/bin/node server.js
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
StandardOutput=journal
|
||||
|
||||
Reference in New Issue
Block a user