Edit .onedev-buildspec.yml
This commit is contained in:
parent
fbf74427c4
commit
2ca10af866
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue