Updating ecosystem to build before deploying
This commit is contained in:
parent
04c5099d13
commit
0d7682e0f9
1 changed files with 2 additions and 2 deletions
|
|
@ -2,8 +2,7 @@ module.exports = {
|
|||
apps: [
|
||||
{
|
||||
name: 'autobaan',
|
||||
script: 'npm',
|
||||
args: 'run start',
|
||||
script: './dist/src/main.js',
|
||||
},
|
||||
],
|
||||
deploy: {
|
||||
|
|
@ -13,6 +12,7 @@ module.exports = {
|
|||
ref: 'origin/main',
|
||||
repo: 'https://fred.collinduncan.com/collin/autobaan.git',
|
||||
path: '/root/autobaan',
|
||||
'pre-deploy-local': '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',
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue