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

Merge branch 'feature/web-service-deploy' into 'master'

feature/web service deploy

See merge request nicolas.pope/ftl!199
parents db25a8fc 5b515aa7
No related branches found
No related tags found
1 merge request!199feature/web service deploy
Pipeline #17133 passed
...@@ -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:
......
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