Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
39703dca22
|
|||
c06184d1b1
|
|||
1450c8fdd7
|
|||
72a3241286
|
@ -56,6 +56,7 @@ build-ui:
|
|||||||
- cd ui/hv2-ui
|
- cd ui/hv2-ui
|
||||||
- if [ "$CI_COMMIT_TAG" != "" ]; then
|
- 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/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
|
fi
|
||||||
- npm install
|
- npm install
|
||||||
- ./node_modules/.bin/ng build --prod
|
- ./node_modules/.bin/ng build --prod
|
||||||
|
@ -6,7 +6,10 @@ app = connexion.App(__name__)
|
|||||||
app.add_api('openapi.yaml')
|
app.add_api('openapi.yaml')
|
||||||
|
|
||||||
# CORSify it - otherwise Angular won't accept it
|
# 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
|
# provide the webservice application to uwsgi
|
||||||
application = app.app
|
application = app.app
|
||||||
|
Reference in New Issue
Block a user