Update ecossytem
Some checks failed
Deploy / deploy (push) Failing after 12s

This commit is contained in:
Leonardo Murça 2025-06-04 21:09:09 -03:00
parent c1a9daaf80
commit c6e414f31b

View file

@ -11,6 +11,7 @@ module.exports = {
max_memory_restart: '1G', max_memory_restart: '1G',
env: { env: {
NODE_ENV: 'production', NODE_ENV: 'production',
PORT: 8001,
}, },
}, },
], ],
@ -24,7 +25,7 @@ module.exports = {
path: '/home/deployer/embroidery-viewer', path: '/home/deployer/embroidery-viewer',
'pre-deploy': 'rm package-lock.json && npm i', 'pre-deploy': 'rm package-lock.json && npm i',
'post-deploy': 'post-deploy':
'npm run build && pm2 reload ecosystem.config.cjs --only embroidery-viewer --env production && pm2 save', 'npm run build && pm2 reload ecosystem.config.cjs --only embroidery-viewer --env production --port 8001 && pm2 save',
env: { env: {
PORT: 8001, PORT: 8001,
NODE_ENV: 'production', NODE_ENV: 'production',