Migrate project from typing_practiceweb

This commit is contained in:
2026-05-14 16:04:14 +08:00
parent dbc5425706
commit 0e87d5546d
225 changed files with 92811 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
module.exports = {
apps: [{
name: 'typing-backend',
script: 'server.ts',
interpreter: 'ts-node',
interpreter_args: '--transpile-only',
instances: 1,
autorestart: true,
watch: false, // 生产环境不要开启 watch
max_memory_restart: '1G',
env: {
NODE_ENV: 'production',
PORT: 5001
},
error_file: './logs/err.log',
out_file: './logs/out.log',
log_file: './logs/combined.log',
time: true
}]
};