Check usage of Application.compile_env #99

Closed
opened 2025-07-17 14:02:41 +02:00 by rafael · 1 comment
Collaborator

For the authentication session identifier, we're currently using Application.compile_env. Check how this relates to the configuration in dev.exs and if it's the correct way to read configuration from there.

For the authentication session identifier, we're currently using `Application.compile_env`. Check how this relates to the configuration in `dev.exs` and if it's the correct way to read configuration from there.
rafael self-assigned this 2025-07-17 14:02:41 +02:00
rafael added this to the Sprint 4 - 09.07 - 30.07 project 2025-07-17 14:02:41 +02:00
carla modified the project from Sprint 4 - 09.07 - 30.07 to Sprint 5 - 31.07. - 11.09. 2025-07-31 14:05:26 +02:00
simon modified the project from Sprint 5 - 31.07. - 11.09. to Sprint 6 - 11.09 - 02.10. 2025-09-11 10:12:44 +02:00
Author
Collaborator

Although the elixir docs recommend to use runtime configuration by default, in this case I think compile-time configuration works better because the configuration should

  1. never change
  2. be set before the application starts

I did a small adjustment in a3746dfaaa - otherwise, this works well the way it is.

One extra confusing thing is that there are two environments in elixir:

  1. the "Application environment" configured in config.exs
  2. Standard linux environment variables, read via System.get_env
Although the elixir docs [recommend to use runtime configuration by default](https://hexdocs.pm/elixir/1.12/Application.html#module-compile-time-environment), in this case I think compile-time configuration works better because the configuration should 1. never change 2. be set before the application starts I did a small adjustment in a3746dfaaa5aa9e32a7b6dd82dad0d494d86e5ab - otherwise, this works well the way it is. One extra confusing thing is that there are two environments in elixir: 1. the ["Application environment"](https://hexdocs.pm/elixir/1.12/Application.html#module-compile-time-environment) configured in `config.exs` 2. Standard linux environment variables, read via `System.get_env`
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: local-it/mitgliederverwaltung#99
No description provided.