Skip to content

Commit

Permalink
feat: multiple urls support
Browse files Browse the repository at this point in the history
  • Loading branch information
tjbck committed May 31, 2024
1 parent ff45186 commit d582788
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -82,5 +87,6 @@ else
fi



# Start the server
uvicorn main:app --host "$HOST" --port "$PORT" --forwarded-allow-ips '*'

0 comments on commit d582788

Please sign in to comment.