Files

16 lines
493 B
Bash
Raw Permalink Normal View History

2023-06-05 13:21:34 +08:00
#!/bin/bash
set -eux
CURRENT_SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
PROJECT_ROOT_DIR=$( dirname -- "${CURRENT_SCRIPT_DIR}" )
cd "${PROJECT_ROOT_DIR}"
# https://stackoverflow.com/questions/61915607/commandnotfounderror-your-shell-has-not-been-properly-configured-to-use-conda
source /root/miniconda3/etc/profile.d/conda.sh
conda activate jarvis
cd "${PROJECT_ROOT_DIR}/../example_services/demo_service2"
exec python -m uvicorn main:app --port=1998