Skip to content
Snippets Groups Projects
Commit 5b515aa7 authored by Sebastian Hahta's avatar Sebastian Hahta
Browse files

feature/web service deploy

parent db25a8fc
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@ stages:
- all
# - build
# - test
# - deploy
- deploy
#cache:
# paths:
......@@ -29,6 +29,20 @@ linux:
- make
- ctest --output-on-failure
webserver-deploy:
only:
- master
stage: deploy
tags:
- linux
variables:
NODE_SERVER: '10.0.0.9'
script:
- npm install web-service/server
- browserify web-service/public/js/index.js -o web-service/public/js/bundle.js
- rsync -vr --delete web-service/ nodejs@${NODE_SERVER}:/srv/nodejs/web-service
- ssh nodejs@${NODE_SERVER} -- "npm install web-service/server && pm2 restart web-service"
windows:
stage: all
variables:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment