Edit .onedev-buildspec.yml
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user