Edit .onedev-buildspec.yml

This commit is contained in:
Norbert Maciaszek 2025-08-09 15:04:06 +00:00
parent fbf74427c4
commit 2ca10af866
1 changed files with 13 additions and 2 deletions

View File

@ -31,17 +31,28 @@ jobs:
condition: SUCCESSFUL condition: SUCCESSFUL
optional: false optional: false
- !CommandStep - !CommandStep
name: Run App name: Build App
runInContainer: false runInContainer: false
interpreter: !DefaultInterpreter interpreter: !DefaultInterpreter
commands: | commands: |
cd /www/wwwroot/moviebox cd /www/wwwroot/moviebox
pm2 delete moviebox
npm run build npm run build
useTTY: true
condition: SUCCESSFUL
optional: false
- !CommandStep
name: Start App
runInContainer: false
interpreter: !DefaultInterpreter
commands: |
pm2 delete moviebox
pm2 start "npm start -- -p 3010" --name moviebox pm2 start "npm start -- -p 3010" --name moviebox
useTTY: true useTTY: true
condition: SUCCESSFUL condition: SUCCESSFUL
optional: false optional: false
triggers:
- !BranchUpdateTrigger
branches: main
retryCondition: never retryCondition: never
maxRetries: 3 maxRetries: 3
retryDelay: 30 retryDelay: 30