Skip to content

Fixed elixir config setup#118

Open
benbot wants to merge 2 commits intomasterfrom
benbot/fixconfig
Open

Fixed elixir config setup#118
benbot wants to merge 2 commits intomasterfrom
benbot/fixconfig

Conversation

@benbot
Copy link
Copy Markdown
Contributor

@benbot benbot commented Jun 12, 2025

The configuration fixes pulled from my other PR.

we were missing a runtime.exs file, which should set some configuration at runtime instead of using some of the handrolled utils.

We also put a lot of dev assumptions in the config.exs instead of the dev.exs. That could be a security issue if dev settings accidentally made it into prod, so i moved those into the dev.exs

I haven't had the chance to thuroughly test these changes, so that should be done before merging

@benbot benbot requested review from fire and lyuma June 12, 2025 13:55
@fire fire changed the title fixed elixir config setup Fixed elixir config setup Jun 12, 2025
Comment thread config/runtime.exs
api_key: System.get_env("SENDGRID_API_KEY", "")

database_url =
System.get_env("DATABASE_URL") ||
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This part raises an error at mix uro.apigen step. We might need some defaults to run the command at build phase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants