Commit 42a5c10c authored by  Danqing  Hu's avatar Danqing Hu

Update .gitlab-ci.yml

parent 57877a52
Pipeline #114486 failed with stages
in 1 minute and 8 seconds
......@@ -15,8 +15,8 @@ job 1:
- echo "Test"
- mvn test
job 2:
stage: deploy in heroku
heroku_deploy:
stage: deploy
script:
- mvn package
- export PORT=5000
......@@ -24,11 +24,12 @@ job 2:
- PATH="$(ruby -r rubygems -e 'puts Gem.user_dir')/bin:$PATH"
- dpl --provider=heroku --app=nym18-simplewebapp --api-key=b46e34b6-e062-4472-a5b4-09ed85dcef47
job 3:
stage: deploy in vm
vm_deploy:
stage: deploy
script:
- fuser -k 5000/tcp || true
- mvn package
- export PORT= 5000
- sh /target/bin/simplewebapp
- nohup sh /target/bin/simplewebapp >/dev/null 2>/dev/null & disown
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment