fengmiguoji commited on
Commit
910568a
·
verified ·
1 Parent(s): 7d25f77

Upload .devcontainer\post_create_command.sh with huggingface_hub

Browse files
.devcontainer//post_create_command.sh ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ npm add -g pnpm@9.12.2
4
+ cd web && pnpm install
5
+ pipx install poetry
6
+
7
+ echo 'alias start-api="cd /workspaces/dify/api && poetry run python -m flask run --host 0.0.0.0 --port=5001 --debug"' >> ~/.bashrc
8
+ echo 'alias start-worker="cd /workspaces/dify/api && poetry run python -m celery -A app.celery worker -P gevent -c 1 --loglevel INFO -Q dataset,generation,mail,ops_trace,app_deletion"' >> ~/.bashrc
9
+ echo 'alias start-web="cd /workspaces/dify/web && pnpm dev"' >> ~/.bashrc
10
+ echo 'alias start-containers="cd /workspaces/dify/docker && docker-compose -f docker-compose.middleware.yaml -p dify up -d"' >> ~/.bashrc
11
+ echo 'alias stop-containers="cd /workspaces/dify/docker && docker-compose -f docker-compose.middleware.yaml -p dify down"' >> ~/.bashrc
12
+
13
+ source /home/vscode/.bashrc