Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to overwrite data dir using environtment variable #1703

Merged
merged 1 commit into from
Nov 11, 2022

Conversation

1848
Copy link
Contributor

@1848 1848 commented Oct 5, 2022

Mealie tries to create its data dir in /app/data.
This is not the place where you want stuff like this if you dont use docker.

This PR introduces another environment variable called DATA_DIR which overwrites this location if set.

It is needed while installing (e.g.)
PRODUCTION=1 DATA_DIR=/var/lib/mealie/app/data python mealie/db/init_db.py
and when running the application (e.g.)
PRODUCTION=1 DATA_DIR=/var/lib/mealie/app/data uvicorn mealie.app:app --host 0.0.0.0 --port 9000

New env variable "DATA_DIR" to overwrite data dir.
@hay-kot hay-kot merged commit f0ed2ad into mealie-recipes:mealie-next Nov 11, 2022
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