mirror of
https://github.com/hexboy/maven-mirror-tool.git
synced 2025-09-02 02:29:17 +00:00
add port env support
This commit is contained in:
parent
694bf9d3f5
commit
d325bc50e4
1 changed files with 7 additions and 1 deletions
|
@ -2,8 +2,14 @@ module.exports = {
|
||||||
apps: [
|
apps: [
|
||||||
{
|
{
|
||||||
name: 'mmt-server',
|
name: 'mmt-server',
|
||||||
script: 'tsx src/index.ts',
|
script: 'tsx src/index.ts --port=${PORT}',
|
||||||
max_memory_restart: '300M',
|
max_memory_restart: '300M',
|
||||||
|
env_production: {
|
||||||
|
NODE_ENV: "production"
|
||||||
|
},
|
||||||
|
env_development: {
|
||||||
|
NODE_ENV: "development"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue