Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Syretta Man
simplewebapp
Commits
42a5c10c
Commit
42a5c10c
authored
Jan 17, 2020
by
Danqing Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update .gitlab-ci.yml
parent
57877a52
Pipeline
#114486
failed with stages
in 1 minute and 8 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
.gitlab-ci.yml
.gitlab-ci.yml
+6
-5
No files found.
.gitlab-ci.yml
View file @
42a5c10c
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment