add port env support

This commit is contained in:
hexboy 2024-07-06 23:45:08 +03:30
parent 694bf9d3f5
commit d325bc50e4

View file

@ -2,8 +2,14 @@ module.exports = {
apps: [
{
name: 'mmt-server',
script: 'tsx src/index.ts',
script: 'tsx src/index.ts --port=${PORT}',
max_memory_restart: '300M',
env_production: {
NODE_ENV: "production"
},
env_development: {
NODE_ENV: "development"
}
},
],
};