diff --git a/start.sh b/start.sh index 94f6e786..a19f29d8 100755 --- a/start.sh +++ b/start.sh @@ -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 '*'