diff --git a/Makefile b/Makefile index dfe6112..703700c 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ database: docker compose --profile db_only up run: - uv run streamlit run app_home.py + uv run --env-file .env streamlit run app_home.py lint: uv run python -m mypy . diff --git a/README.md b/README.md index 6df6e08..ec79165 100644 --- a/README.md +++ b/README.md @@ -163,7 +163,7 @@ Then run the Streamlit application: ```bash # Load environment variables from .env file and run the app -export $(grep -v '^#' .env | xargs) && uv run streamlit run app_home.py +uv run --env-file .env streamlit run app_home.py ``` ### Common Issues and Solutions @@ -184,7 +184,7 @@ kill -9 PID Or specify a different port: ```bash -uv run streamlit run app_home.py -- --server.port=8503 +uv run --env-file .env streamlit run app_home.py --server.port=8503 ``` ### Running with Docker diff --git a/supervisord.conf b/supervisord.conf index 57d2980..8c06e5d 100644 --- a/supervisord.conf +++ b/supervisord.conf @@ -13,7 +13,7 @@ stderr_logfile_maxbytes=0 autorestart=true [program:streamlit] -command=uv run streamlit run app_home.py +command=uv run --env-file .env streamlit run app_home.py stdout_logfile=/dev/stdout stdout_logfile_maxbytes=0 stderr_logfile=/dev/stderr