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: [
|
apps: [
|
||||||
{
|
{
|
||||||
name: 'autobaan',
|
name: 'autobaan',
|
||||||
script: 'npm',
|
script: './dist/src/main.js',
|
||||||
args: 'run start',
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
deploy: {
|
deploy: {
|
||||||
|
|
@ -13,6 +12,7 @@ module.exports = {
|
||||||
ref: 'origin/main',
|
ref: 'origin/main',
|
||||||
repo: 'https://fred.collinduncan.com/collin/autobaan.git',
|
repo: 'https://fred.collinduncan.com/collin/autobaan.git',
|
||||||
path: '/root/autobaan',
|
path: '/root/autobaan',
|
||||||
|
'pre-deploy-local': 'npm run build',
|
||||||
'post-deploy':
|
'post-deploy':
|
||||||
'npm install --omit dev && GIT_COMMIT=$(git show -s --format=%h) pm2 startOrRestart ecosystem.config.js --name autobaan --update-env',
|
'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