Skip to content

Parse export KEY=value lines in .env files - #187

Open
gyanu2507 wants to merge 1 commit into
HBNetwork:masterfrom
gyanu2507:fix/env-export-prefix
Open

Parse export KEY=value lines in .env files#187
gyanu2507 wants to merge 1 commit into
HBNetwork:masterfrom
gyanu2507:fix/env-export-prefix

Conversation

@gyanu2507

Copy link
Copy Markdown

A line like export DATABASE_URL=postgres://... was stored under the key export DATABASE_URL, so config('DATABASE_URL') missed it.

docker-compose and python-dotenv treat a leading export as optional. Strip it before the split.

docker-compose and python-dotenv both treat a leading export as
optional syntax. We were storing the key as "export KEY".
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.

1 participant