This commit is contained in:
parent
c1a9daaf80
commit
c6e414f31b
1 changed files with 2 additions and 1 deletions
|
@ -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',
|
||||||
|
|
Loading…
Add table
Reference in a new issue