From 0340e347671d83b90ea2f363082a3d632c1795c9 Mon Sep 17 00:00:00 2001 From: Rajiv Chodisetti <46923567+rajivml@users.noreply.github.com> Date: Sun, 24 Nov 2024 13:52:59 +0530 Subject: [PATCH] Update CONTRIBUTING_UIPATH.md --- CONTRIBUTING_UIPATH.md | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/CONTRIBUTING_UIPATH.md b/CONTRIBUTING_UIPATH.md index 084525994d2..10b41918f24 100644 --- a/CONTRIBUTING_UIPATH.md +++ b/CONTRIBUTING_UIPATH.md @@ -82,6 +82,9 @@ pyenv virtualenv danswer3.11.7 pyenv activate danswer3.11.7 python --version pyenv virtualenvs + +In VS Code CMD+SHIFT+P search for Python:Select Interpreter and select the virtual env name that you have just created or you can directly create a virtual +env from VSCode itself ``` Install the required python dependencies in vscode terminal where virtualenv is created and activated: @@ -106,7 +109,7 @@ You may have to deactivate and reactivate your virtualenv for `playwright` to ap Install [Node.js and npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) for the frontend. Once the above is done, navigate to `danswer/web` run: ```bash -npm i +npm i --no-audit ``` #### Docker containers for external software @@ -131,11 +134,6 @@ Navigate to `danswer/backend` and run: uvicorn model_server.main:app --reload --port 9000 ``` -_For Windows (for compatibility with both PowerShell and Command Prompt):_ -```bash -powershell -Command "uvicorn model_server.main:app --reload --port 9000" -``` - The first time running Danswer, you will need to run the DB migrations for Postgres. After the first time, this is no longer required unless the DB models change. @@ -157,14 +155,6 @@ To run the backend API server, navigate back to `danswer/backend` and run: AUTH_TYPE=disabled uvicorn danswer.main:app --reload --port 8080 ``` -_For Windows (for compatibility with both PowerShell and Command Prompt):_ -```bash -powershell -Command " - $env:AUTH_TYPE='disabled' - uvicorn danswer.main:app --reload --port 8080 -" -``` - > **Note:** > If you need finer logging, add the additional environment variable `LOG_LEVEL=DEBUG` to the relevant services.