Skip to content

Commit 1afc39a

Browse files
committed
better env variable workflow
1 parent e8cd4e8 commit 1afc39a

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

htdocs/.env

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,6 @@ DATABASE_RO_URL="mysql://jacq:jacq@herbarium-replica.dyn.cloud.e-infra.cz:3306/h
3232
###< doctrine/doctrine-bundle ###
3333
UUID_ENDPOINT_URL="https://input.jacq.org/input.services/"
3434
UUID_PREFIX="https://resolve.jacq.org/"
35+
36+
# to be overwritten by local
37+
UUID_ENDPOINT_KEY="xxxxx"

htdocs/config/services.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
parameters:
77
uuid_endpoint_url: '%env(UUID_ENDPOINT_URL)%'
88
uuid_endpoint_key: '%env(UUID_ENDPOINT_KEY)%'
9-
app.version: '%env(GIT_TAG)%'
9+
app.version: '%env(default:git_tag_default:GIT_TAG)%'
1010
app.project_dir: '%kernel.project_dir%'
11-
11+
git_tag_default: 'unknown'
1212
services:
1313
# default configuration for services in *this* file
1414
_defaults:

0 commit comments

Comments
 (0)