|
hai 1 ano | |
---|---|---|
.. | ||
constants | hai 1 ano | |
controllers | hai 1 ano | |
core | hai 1 ano | |
docker | hai 1 ano | |
events | hai 1 ano | |
extensions | hai 1 ano | |
libs | hai 1 ano | |
migrations | hai 1 ano | |
models | hai 1 ano | |
services | hai 1 ano | |
tasks | hai 1 ano | |
tests | hai 1 ano | |
.dockerignore | hai 1 ano | |
.env.example | hai 1 ano | |
Dockerfile | hai 1 ano | |
README.md | hai 1 ano | |
app.py | hai 1 ano | |
commands.py | hai 1 ano | |
config.py | hai 1 ano | |
requirements.txt | hai 1 ano |
The backend require some middleware, including PostgreSQL, Redis, and Weaviate, which can be started together using docker-compose
.
cd ../docker
docker-compose -f docker-compose.middleware.yaml -p dify up -d
cd ../api
.env.example
to .env
SECRET_KEY
in the .env
file. openssl rand -base64 42
3.5 If you use annaconda, create a new environment and activate it
conda create --name dify python=3.10
conda activate dify
bash
pip install -r requirements.txt
Before the first launch, migrate the database to the latest version.
flask db upgrade
bash
flask run --host 0.0.0.0 --port=5001 --debug
celery -A app.celery worker -Q dataset,generation,mail
, celery can do dataset importing and other async tasks.