diff --git a/.onedev-buildspec.yml b/.onedev-buildspec.yml index f94b8c0..eab8c82 100644 --- a/.onedev-buildspec.yml +++ b/.onedev-buildspec.yml @@ -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