5 Commits
0.0.4 ... 0.0.7

Author SHA1 Message Date
39703dca22 cors 2021-09-11 18:44:43 +02:00
c06184d1b1 fix in ci 2021-09-11 18:13:02 +02:00
1450c8fdd7 fix in ci 2021-09-11 18:12:09 +02:00
72a3241286 fix in ci 2021-09-11 18:09:10 +02:00
d2cf532a0e fix in ci 2021-09-11 17:52:38 +02:00
2 changed files with 7 additions and 1 deletions

View File

@ -56,6 +56,7 @@ build-ui:
- cd ui/hv2-ui
- if [ "$CI_COMMIT_TAG" != "" ]; then
sed -i -e 's/GITTAGVERSION/'"$CI_COMMIT_TAG"':'"$CI_COMMIT_SHORT_SHA"'/' ./src/app/navigation/navigation.component.html;
sed -i -e 's,http://localhost:8080,https://api.hv.nober.de,' ./src/app/config.ts;
fi
- npm install
- ./node_modules/.bin/ng build --prod
@ -107,6 +108,7 @@ deploy-api:
variables:
IMAGE_NAME: ${CI_REGISTRY}/${CI_PROJECT_PATH}/api
CONTAINER_NAME: hv2-api
CONTAINER_IP: 172.16.10.38
deploy-ui:
extends:
@ -114,3 +116,4 @@ deploy-ui:
variables:
IMAGE_NAME: ${CI_REGISTRY}/${CI_PROJECT_PATH}/ui
CONTAINER_NAME: hv2-ui
CONTAINER_IP: 172.16.10.39

View File

@ -6,7 +6,10 @@ app = connexion.App(__name__)
app.add_api('openapi.yaml')
# CORSify it - otherwise Angular won't accept it
CORS(app.app)
CORS(app.app, origins=[
"http://localhost:4200",
"https://base.hv.nober.de"
])
# provide the webservice application to uwsgi
application = app.app