Trying out different pm2 config
This commit is contained in:
parent
0d7682e0f9
commit
ca62c2b026
2 changed files with 5 additions and 5 deletions
|
|
@ -15,5 +15,3 @@ steps:
|
|||
|
||||
depends_on:
|
||||
- test
|
||||
|
||||
runs_on: [success]
|
||||
|
|
|
|||
|
|
@ -2,7 +2,8 @@ module.exports = {
|
|||
apps: [
|
||||
{
|
||||
name: 'autobaan',
|
||||
script: './dist/src/main.js',
|
||||
script: 'npm',
|
||||
arguments: ['start', 'prod'],
|
||||
},
|
||||
],
|
||||
deploy: {
|
||||
|
|
@ -12,9 +13,10 @@ module.exports = {
|
|||
ref: 'origin/main',
|
||||
repo: 'https://fred.collinduncan.com/collin/autobaan.git',
|
||||
path: '/root/autobaan',
|
||||
'pre-deploy-local': 'npm run build',
|
||||
'post-setup': 'npm install',
|
||||
'pre-deploy': 'npm run build',
|
||||
'post-deploy':
|
||||
'npm install --omit dev && GIT_COMMIT=$(git show -s --format=%h) pm2 startOrRestart ecosystem.config.js --name autobaan --update-env',
|
||||
'GIT_COMMIT=$(git show -s --format=%h) pm2 startOrRestart ecosystem.config.js --name autobaan --update-env',
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue