chore: deploy script for all services
This commit is contained in:
@@ -26,7 +26,9 @@ pip install uv
|
||||
# to run `uv ...`
|
||||
PATH="${HOME}/.local/bin:${PATH}"
|
||||
|
||||
cd ${SVC_DIR}/current/app
|
||||
APP_DIR=${SVC_DIR}/current/app
|
||||
echo "changing dir to ${APP_DIR}"
|
||||
cd ${APP_DIR}
|
||||
# (re)create venv using site-packages -- uses system-wide installed epics
|
||||
uv venv --system-site-packages .venv --clear
|
||||
# install custom python packages from pyproject.toml / uv.lock
|
||||
@@ -34,4 +36,4 @@ uv sync --frozen
|
||||
# activate .venv, this works in conjunction with the conda environment
|
||||
source .venv/bin/activate
|
||||
|
||||
python3 -u -B ${SVC_DIR}/current/app/src/AGEBD-SERVICE-${SVC_NAME}.py
|
||||
python3 -u -B ${APP_DIR}/src/AGEBD-SERVICE-${SVC_NAME}.py
|
||||
|
||||
Reference in New Issue
Block a user