Skip to content

Commit ba1dbcc

Browse files
committed
fix(server): specify env file for starting server
1 parent 1e71036 commit ba1dbcc

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,7 @@ Generally, our configuration-based pipeline uses outer layer settings as default
6161
The analysis results will be saved using MongoDB, and you can use the provided visualization tools to visualize the learned dictionary. First, start the FastAPI server by running the following command:
6262

6363
```bash
64-
uvicorn server.app:app --port 24577
65-
# You may want to modify some environmental settings in server/.env.example to server/.env, and run with these environmental variables:
66-
# uvicorn server.app:app --port 24577 --env-file server/.env
64+
uvicorn server.app:app --port 24577 --env-file server/.env
6765
```
6866

6967
Then, copy the `ui/.env.example` file to `ui/.env` and modify the `VITE_BACKEND_URL` to fit your server settings (by default, it's `http://localhost:24577`), and start the frontend by running the following command:

server/.env.example

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
OPENAI_API_KEY=
2-
OPENAI_BASE_URL=
3-
4-
MONGO_URI=
5-
RESULT_DIR=
6-
DICTIONARY_SERIES=
1+
MONGO_URI= # Must fill in
2+
RESULT_DIR= # Must fill in
3+
DICTIONARY_SERIES= # Must fill in
74
DICTIONARY_CKPT_NAME=final.pt
5+
6+
OPENAI_API_KEY= # Can be left blank
7+
OPENAI_BASE_URL= # Can be left blank

0 commit comments

Comments
 (0)