Skip to content
This repository was archived by the owner on Nov 10, 2022. It is now read-only.

Commit 512beeb

Browse files
committed
Add new ENV: DEFAULT_LANG
1 parent bf4fd5d commit 512beeb

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ services:
2121
DB_USERNAME: easyappointments
2222
DB_PASSWORD: easyappointments
2323
# DEBUG_MODE: true
24+
# French is the default lang
25+
DEFAULT_LANG: french
2426
healthcheck:
2527
test:
2628
[

docker/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ RUN curl -# -L -o easyappointments.zip ${DIST_URL} && \
4747
unzip -q easyappointments.zip && \
4848
rm easyappointments.zip && \
4949
echo -e '\n$config["uri_protocol"] = "REQUEST_URI";' >> application/config/config.php && \
50-
echo -e '\n$config["index_page"] = "";' >> application/config/config.php
50+
echo -e '\n$config["index_page"] = "";' >> application/config/config.php && \
51+
echo -e '\n$config["language"] = is_string(getenv("DEFAULT_LANG")) ? getenv("DEFAULT_LANG") : $config["language"];' >> application/config/config.php
5152

5253
# Metadata
5354
LABEL org.label-schema.vendor="Sudo-Bot" \

docker/horust/services/fpm.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ wait = "10s"
2424

2525
[environment]
2626
keep-env = false
27-
re-export = ["BASE_URL", "DB_HOST", "DB_NAME", "DB_USERNAME", "DB_PASSWORD"]
27+
re-export = ["BASE_URL", "DB_HOST", "DB_NAME", "DB_USERNAME", "DB_PASSWORD", "DEFAULT_LANG", "DEBUG_MODE"]

0 commit comments

Comments
 (0)