chore: force .env on uv run
This commit is contained in:
parent
1333cad3f3
commit
10049342cb
3 changed files with 4 additions and 4 deletions
2
Makefile
2
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 .
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue