embroidery-viewer/ecosystem.config.cjs
Leonardo Murça 883dee35bf
Some checks are pending
Deploy / deploy (push) Waiting to run
Updaet name
2025-06-05 00:07:08 -03:00

35 lines
855 B
JavaScript

module.exports = {
apps: [
{
name: 'embroidery-viewer',
script: './build/index.js',
time: true,
instances: 1,
autorestart: true,
max_restarts: 50,
watch: false,
max_memory_restart: '1G',
env: {
NODE_ENV: 'production',
PORT: 7281,
},
},
],
deploy: {
production: {
user: 'deployer',
host: '45.76.5.44',
key: 'deploy.key',
ref: 'origin/main',
repo: 'git@git.leomurca.xyz:leomurca/embroidery-viewer.git',
path: '/home/deployer/embroidery-viewer',
'pre-deploy': 'rm package-lock.json && npm i',
'post-deploy':
'npm run build && pm2 reload ecosystem.config.cjs --only embroidery-viewer-prod --env production && pm2 save',
env: {
PORT: 7281,
NODE_ENV: 'production',
},
},
},
};