Verified Commit 12549485 authored by Raphael Ochsenbein's avatar Raphael Ochsenbein
Browse files

Update build for deploy on server

parent 8bb0e135
Pipeline #632 passed with stages
in 54 seconds
......@@ -21,3 +21,25 @@ test:
paths:
- dist/host-repro/
expire_in: 1337 mins
deploy_master:
stage: deploy
before_script:
# - nvm i
# - npm i
script:
# - npm run production
- rsync --delete -rlvvzhe ssh $CI_PROJECT_DIR/dist/host-repro/ akehir@192.168.7.111:/app/web/projects/host-repro/master/ # syncronize from build server to local via rsync
only:
- master
deploy_develop:
stage: deploy
before_script:
# - nvm i
# - npm i
script:
# - npm run production
- rsync --delete -rlvvzhe ssh $CI_PROJECT_DIR/dist/host-repro/ akehir@192.168.7.111:/app/web/projects/host-repro/develop/ # syncronize from build server to local via rsync
only:
- develop
......@@ -6,7 +6,7 @@
"start": "ng serve",
"aot": "ng serve --aot --port 4201",
"jit": "ng serve --port 4202",
"build": "ng build --base-href /host-repro/dist/host-repro/",
"build": "ng build",
"test": "ng test",
"lint": "ng lint && npm run lint:sass",
"lint:sass": "sass-lint -c .sass-lint.yml -v -q",
......
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