chore: migrate PM2 processes to ecosystem.config.js and add deploy safety checks

This commit is contained in:
Your Name committed 2026-06-13 00:00:22 -04:00
1 parent 10c614fc8c
commit f5b48433d1
3 files changed
+55 -32

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
module.exports = {
apps: [
{
name: 'homaroma-backend',
script: './src/index.ts',
cwd: '/home/ti/projects/homaroma-api/apps/backend',
interpreter: '/home/ti/.bun/bin/bun',
watch: false,
max_memory_restart: '1G',
env_production: {
NODE_ENV: 'production'
}
},
{
name: 'homaroma-website',
script: 'server.js',
cwd: '/home/ti/projects/homaroma-website/apps/website',
interpreter: '/home/ti/.bun/bin/bun',
watch: false,
max_memory_restart: '1G',
env_production: {
NODE_ENV: 'production',
PORT: 3002
}
}
]
};