Skip to content

Commit

Permalink
adds startup script
Browse files Browse the repository at this point in the history
  • Loading branch information
sdwalker62 committed May 6, 2024
1 parent 09c7ddf commit b8bded0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 1 addition & 2 deletions frontend/ecosystem.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ module.exports = {
repo: process.env.GIT_REPOSITORY,
path: process.env.DEPLOY_PATH,
'pre-deploy-local': '',
'post-deploy':
'cd frontend && npm install && npm run build && pm2 reload ecosystem.config.cjs',
'post-deploy': 'sh scripts/startup.sh',
'pre-setup': ''
}
}
Expand Down
5 changes: 5 additions & 0 deletions frontend/scripts/startup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
cd frontend && \
npm install && \
npm run build && \
pm2 kill && \
pm2 start ecosystem.config.cjs

0 comments on commit b8bded0

Please sign in to comment.