mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 03:32:23 +08:00
411e938e3b
Co-authored-by: ox01024@163.com <Waffle>
11 lines
586 B
Bash
Executable File
11 lines
586 B
Bash
Executable File
#!/bin/bash
|
|
|
|
cd web && npm install
|
|
pipx install poetry
|
|
|
|
echo 'alias start-api="cd /workspaces/dify/api && flask run --host 0.0.0.0 --port=5001 --debug"' >> ~/.bashrc
|
|
echo 'alias start-worker="cd /workspaces/dify/api && celery -A app.celery worker -P gevent -c 1 --loglevel INFO -Q dataset,generation,mail,ops_trace,app_deletion"' >> ~/.bashrc
|
|
echo 'alias start-web="cd /workspaces/dify/web && npm run dev"' >> ~/.bashrc
|
|
echo 'alias start-containers="cd /workspaces/dify/docker && docker-compose -f docker-compose.middleware.yaml -p dify up -d"' >> ~/.bashrc
|
|
|
|
source /home/vscode/.bashrc |