feat: multiple urls support

This commit is contained in:
Timothy J. Baek 2024-05-30 19:13:47 -07:00
parent ff4518651e
commit d5827887e6

View File

@ -70,7 +70,12 @@ install_frontmatter_requirements() {
if [[ -n "$PIPELINES_PATH" ]]; then
pipelines_dir="./pipelines"
mkdir -p "$pipelines_dir"
download_pipelines "$PIPELINES_PATH" "$pipelines_dir"
# Split PIPELINES_PATH by ';' and iterate over each path
IFS=';' read -ra ADDR <<< "$PIPELINES_PATH"
for path in "${ADDR[@]}"; do
download_pipelines "$path" "$pipelines_dir"
done
for file in "$pipelines_dir"/*; do
if [[ -f "$file" ]]; then
@ -82,5 +87,6 @@ else
fi
# Start the server
uvicorn main:app --host "$HOST" --port "$PORT" --forwarded-allow-ips '*'