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
|
docker compose --profile db_only up
|
||||||
|
|
||||||
run:
|
run:
|
||||||
uv run streamlit run app_home.py
|
uv run --env-file .env streamlit run app_home.py
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
uv run python -m mypy .
|
uv run python -m mypy .
|
||||||
|
|
|
||||||
|
|
@ -163,7 +163,7 @@ Then run the Streamlit application:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Load environment variables from .env file and run the app
|
# 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
|
### Common Issues and Solutions
|
||||||
|
|
@ -184,7 +184,7 @@ kill -9 PID
|
||||||
|
|
||||||
Or specify a different port:
|
Or specify a different port:
|
||||||
```bash
|
```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
|
### Running with Docker
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ stderr_logfile_maxbytes=0
|
||||||
autorestart=true
|
autorestart=true
|
||||||
|
|
||||||
[program:streamlit]
|
[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=/dev/stdout
|
||||||
stdout_logfile_maxbytes=0
|
stdout_logfile_maxbytes=0
|
||||||
stderr_logfile=/dev/stderr
|
stderr_logfile=/dev/stderr
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue