Page MenuHomePhabricator

Replace hard-coded settings by .env variables
Closed, ResolvedPublic

Description

Explainer

This task's mission is to push further for easy deployment of both the static website and the app. We should also ensure for them both to work smooth together via embeding, without conflict.

Here, we ensure there are minimal or ideally no hard-coded values in the code. As much as possible, installation variables should be moved into config.ini, then used while running npm build and using docker.

Repositories assessment

ProgressesTask & TitleComment
75%T389368 Lingua Libre App & related filesNearly done, few last concerns in vite.config.js#L13 and front-end/src/utils/getLocutorRecordings.js#L9
?T391484 Lingua Libre Website & related filesNeed to check, but I (Yug) believed to be simpler. See search for 127.0.0.

Notes

Former Ansible repository > Main.

QUESTION : Should archive / phase it out ?

Event Timeline

Pushkar moved toward dockerisation which serves the same use.
See T375727.

What to do with this operations repository ?

Yug changed the task status from Open to Stalled.Dec 17 2024, 8:11 AM
Yug triaged this task as Medium priority.
Yug moved this task from Backlog to Back-end on the Lingua-Libre board.
Yug renamed this task from Use variables in Ansible playbooks instead of hard-coding 'dev.lingualibre.org' to Use env variables instead of hard-coding values.Feb 4 2025, 2:44 PM
Yug updated the task description. (Show Details)
Yug updated the task description. (Show Details)
Yug updated the task description. (Show Details)
Yug edited subscribers, added: mickeybarber, Pushkar7077; removed: Poslovitch.
Yug renamed this task from Use env variables instead of hard-coding values to Use env variables instead of hard-coded values.Feb 4 2025, 2:57 PM
Yug updated the task description. (Show Details)
Yug updated the task description. (Show Details)
Yug claimed this task.
Yug renamed this task from Use env variables instead of hard-coded values to Replace hard-coded settings by .env variables.Jul 13 2025, 8:41 AM