Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

chore: add dev scripts to start api and worker service with uv run (#19633)

Bowen Liang9e795374bcef
diff --git a/dev/start-api b/dev/start-api
new file mode 100755
index 00000000000..0b50ad0d0a9
--- /dev/null
+++ b/dev/start-api
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+set -x
+
+SCRIPT_DIR="$(dirname "$(realpath "$0")")"
+cd "$SCRIPT_DIR/.."
+
+
+uv --directory api run \
+ flask run --host 0.0.0.0 --port=5001 --debug
diff --git a/dev/start-worker b/dev/start-worker
new file mode 100755
index 00000000000..7007b265e06
--- /dev/null
+++ b/dev/start-worker
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+set -x
+
+SCRIPT_DIR="$(dirname "$(realpath "$0")")"
+cd "$SCRIPT_DIR/.."
+
+
+uv --directory api run \
+ celery -A app.celery worker \
+ -P gevent -c 1 --loglevel INFO -Q dataset,generation,mail,ops_trace,app_deletion