added env variable to app-config files

This commit is contained in:
Luis Aleixo 2023-03-17 15:36:22 +01:00
parent 24e530cb11
commit 9277136a8e
3 changed files with 11 additions and 2 deletions

View file

@ -6,13 +6,16 @@ if [[ "$APP_NAME" == "caimira-webservice" ]]; then
args+=("--no-debug")
fi
if [ ! -z "$CAIMIRA_THEME" ]; then
args+=("--theme=${CAIMIRA_THEME}")
if [ ! -z "$APPLICATION_ROOT" ]; then
args+=("--app_root=${APPLICATION_ROOT}")
fi
if [ ! -z "$CAIMIRA_CALCULATOR_PREFIX" ]; then
args+=("--prefix=${CAIMIRA_CALCULATOR_PREFIX}")
fi
if [ ! -z "$CAIMIRA_THEME" ]; then
args+=("--theme=${CAIMIRA_THEME}")
fi
export "ARVE_API_KEY"="$ARVE_API_KEY"
export "ARVE_CLIENT_ID"="$ARVE_CLIENT_ID"

View file

@ -11,6 +11,7 @@ services:
environment:
- COOKIE_SECRET
- APP_NAME=caimira-webservice
- APPLICATION_ROOT=/
- CAIMIRA_CALCULATOR_PREFIX=/calculator-cern
- CAIMIRA_THEME=caimira/apps/templates/cern
user: ${CURRENT_UID}
@ -20,6 +21,7 @@ services:
environment:
- COOKIE_SECRET
- APP_NAME=caimira-webservice
- APPLICATION_ROOT=/
- CAIMIRA_CALCULATOR_PREFIX=/calculator-open
user: ${CURRENT_UID}

View file

@ -205,6 +205,8 @@
value: '3'
- name: APP_NAME
value: caimira-webservice
- name: APPLICATION_ROOT
value: /
- name: CAIMIRA_CALCULATOR_PREFIX
value: /calculator-cern
- name: CAIMIRA_THEME
@ -297,6 +299,8 @@
env:
- name: APP_NAME
value: caimira-webservice
- name: APPLICATION_ROOT
value: /
- name: CAIMIRA_CALCULATOR_PREFIX
value: /calculator-open
image: '${PROJECT_NAME}/caimira-webservice'