Updated scripts to not use PDM anymore

This commit is contained in:
Donkie
2024-01-25 20:13:24 +01:00
parent 44d3ed72b0
commit 52cdb01110
2 changed files with 20 additions and 10 deletions

View File

@@ -30,6 +30,12 @@ if [[ ! "$PATH" =~ "$user_python_bin_dir" ]]; then
export PATH=$user_python_bin_dir:$PATH
fi
#
# Activate .venv
#
echo -e "${GREEN}Activating .venv...${NC}"
source .venv/bin/activate
#
# Load envvars from .env file
#
@@ -41,4 +47,4 @@ set +o allexport
# Start Spoolman using pdm run
#
echo -e "${GREEN}Starting Spoolman...${NC}"
pdm run app --host $SPOOLMAN_HOST --port $SPOOLMAN_PORT
python -m uvicorn spoolman.main:app --host $SPOOLMAN_HOST --port $SPOOLMAN_PORT