Add editable weather captions and manage Threads scheduling with PM2

This commit is contained in:
2026-11-02 04:07:40 +09:00
parent 8c2113a323
commit 6ce32d33fe
17 changed files with 305 additions and 50 deletions
+19
View File
@@ -0,0 +1,19 @@
const path = require('node:path');
module.exports = {
apps: [{
name: 'sunrise-threads',
cwd: path.resolve(__dirname, '..'),
script: process.execPath,
args: ['server/threads/worker.ts'],
interpreter: 'none',
instances: 1,
exec_mode: 'fork',
autorestart: true,
restart_delay: 60000,
kill_timeout: 15000,
watch: false,
time: true,
env: { NODE_ENV: 'production', TZ: 'Asia/Seoul' },
}],
};