RAW: Adicionado arquivo para Deploy via PM2

This commit is contained in:
Rafael Alves Lopes 2025-11-11 13:46:33 -03:00
parent 3caef30a06
commit 0d4128df3d

24
ecosystem.config.js Normal file
View File

@ -0,0 +1,24 @@
module.exports = {
apps: [
{
name: "hubxglpi",
script: "src/server.js",
instances: 1,
autorestart: true,
watch: false,
env: {
NODE_ENV: "development"
},
env_production: {
NODE_ENV: "production"
}
}
]
};
/** * Arquivo preparado para configuração do PM2. */
/** * File prepared for PM2 configuration. */
/** * Para subiir o projeto para produção, utilize o comando: pm2 start ecosystem.config.js --env production */
/** * To deploy the project to production, use the command: pm2 start ecosystem.config.js --env production */
/** * Para subir o projeto em desenvolvimento, utilize o comando: pm2 start ecosystem.config.js --env development */
/** * To run the project in development, use the command: pm2 start ecosystem.config.js --env development */