fix: activate venv before uv pip install

uv pip needs the venv to be activated (VIRTUAL_ENV set) to find it.
Setting VIRTUAL_ENV and PATH ensures uv can locate the venv.
This commit is contained in:
Michael Joshua Saul
2026-02-27 01:45:48 -07:00
parent 394b8dac26
commit 4abe05bbd9
3 changed files with 626 additions and 0 deletions

View File

@@ -67,6 +67,8 @@ function update_script() {
msg_info "Updating Python Dependencies"
cd /opt/plane/apps/api
export VIRTUAL_ENV=/opt/plane-venv
export PATH="/opt/plane-venv/bin:$PATH"
$STD uv pip install --upgrade -r requirements/production.txt
msg_ok "Updated Python Dependencies"