Skip to content

Commit d2dfd69

Browse files
committed
update local source develop guide
1 parent cc7d905 commit d2dfd69

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

en/self-host/advanced-deployments/local-source-code.mdx

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ A series of middlewares for storage (e.g. PostgreSQL / Redis / Weaviate (if not
3131
```Bash
3232
cd docker
3333
cp middleware.env.example middleware.env
34-
docker compose -f docker-compose.middleware.yaml up -d
34+
# change the profile to mysql if you are not using postgres
35+
# change the profile to other vector database if you are not using weaviate
36+
docker compose -f docker-compose.middleware.yaml --profile postgresql --profile weaviate -p dify up -d
3537
```
3638

3739
---
@@ -75,7 +77,7 @@ The backend services include
7577
[uv](https://docs.astral.sh/uv/getting-started/installation/) is used to manage dependencies.
7678
Install the required dependencies with `uv` by running:
7779
```
78-
uv sync
80+
uv sync --dev
7981
```
8082
> For macOS: install libmagic with `brew install libmagic`.
8183
@@ -111,14 +113,14 @@ To consume asynchronous tasks from the queue, such as dataset file import and da
111113

112114
- for macOS or Linux
113115
```
114-
uv run celery -A app.celery worker -P gevent -c 1 --loglevel INFO -Q dataset,generation,mail,ops_trace
116+
uv run celery -A app.celery worker -P gevent -c 1 --loglevel INFO -Q dataset,priority_dataset,priority_pipeline,pipeline,mail,ops_trace,app_deletion,plugin,workflow_storage,conversation,workflow,schedule_poller,schedule_executor,triggered_workflow_dispatcher,trigger_refresh_executor
115117
```
116118

117119
If you are using a Windows system to start the Worker service, please use the following command instead:
118120

119121
- for Windows
120122
```
121-
uv run celery -A app.celery worker -P solo --without-gossip --without-mingle -Q dataset,generation,mail,ops_trace --loglevel INFO
123+
uv run celery -A app.celery worker -P solo --without-gossip --without-mingle --loglevel INFO -Q dataset,priority_dataset,priority_pipeline,pipeline,mail,ops_trace,app_deletion,plugin,workflow_storage,conversation,workflow,schedule_poller,schedule_executor,triggered_workflow_dispatcher,trigger_refresh_executor
122124
```
123125

124126
Expected output:
@@ -189,6 +191,14 @@ To consume asynchronous tasks from the queue, such as dataset file import and da
189191
2025-04-28 17:07:15,742 INFO [pidbox.py:111] pidbox: Connected to redis://:**@localhost:6379/1.
190192
```
191193

194+
### Start the Beat service
195+
196+
Additionally, if you want to debug the celery scheduled tasks or run the Schedule Trigger node, you can run the following command in another terminal to start the beat service:
197+
198+
```bash
199+
uv run celery -A app.celery beat
200+
```
201+
192202
---
193203

194204
## Setup Web Service

0 commit comments

Comments
 (0)