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
optional: false
- !CommandStep
name: Run App
name: Build App
runInContainer: false
interpreter: !DefaultInterpreter
commands: |
cd /www/wwwroot/moviebox
pm2 delete moviebox
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
useTTY: true
condition: SUCCESSFUL
optional: false
triggers:
- !BranchUpdateTrigger
branches: main
retryCondition: never
maxRetries: 3
retryDelay: 30