Skip to content
Snippets Groups Projects

feature/web service deploy

Merged Sebastian Hahta requested to merge feature/web-service-deploy into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 15
1
@@ -8,7 +8,7 @@ stages:
@@ -8,7 +8,7 @@ stages:
- all
- all
# - build
# - build
# - test
# - test
# - deploy
- deploy
#cache:
#cache:
# paths:
# paths:
@@ -29,6 +29,20 @@ linux:
@@ -29,6 +29,20 @@ linux:
- make
- make
- ctest --output-on-failure
- 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:
windows:
stage: all
stage: all
variables:
variables:
Loading