diff --git a/README.md b/README.md index 27644d1..1563a66 100644 --- a/README.md +++ b/README.md @@ -124,7 +124,7 @@ celery -A backend flower --port=5555 --basic_auth=admin:admin123 1. 进入前端目录: ```bash - cd web/apps/web-antd + cd web ``` 2. 安装依赖: ```bash diff --git a/docs/docs/essential/docker-deploy.md b/docs/docs/essential/docker-deploy.md index d8ae60e..7ff1ddf 100644 --- a/docs/docs/essential/docker-deploy.md +++ b/docs/docs/essential/docker-deploy.md @@ -3,11 +3,23 @@ sidebar_position: 7 --- # Docker 项目部署(生产环境) -1. 配置生产环境变量和数据库 -2. 构建前端静态文件并拷贝到后端 static 目录 -3. 执行: - ```bash +# 配置生产环境变量和数据库 根据实际情况修改 docker/.env.local +cp docker/.env.example docker/.env.local + +# 可选(阿里oss) +# vim web/apps/web-antd/.env.production.local +# 添加以下内容, 按实际值填 +# VITE_OSS_ENABLED=true +# VITE_OSS_REGION= +# VITE_OSS_ACCESS_KEY_ID= +# VITE_OSS_ACCESS_KEY_SECRET= +# VITE_OSS_BUCKET= +# VITE_OSS_PREFIX= +# VITE_OSS_DELETE_LOCAL= + + +# 执行 docker-compose -f docker-compose.prod.yml up -d --build ``` diff --git a/docs/docs/essential/docker-start.md b/docs/docs/essential/docker-start.md index 7054889..14e6744 100644 --- a/docs/docs/essential/docker-start.md +++ b/docs/docs/essential/docker-start.md @@ -7,6 +7,8 @@ sidebar_position: 6 2. 在项目根目录执行: ```bash +cp docker/.env.example docker/.env.local +# 根据实际情况修改 docker/.env.local docker-compose -f docker-compose.dev.yml up -d ``` diff --git a/docs/docs/essential/quickstart-backend.md b/docs/docs/essential/quickstart-backend.md index c8b52e9..dc968ae 100644 --- a/docs/docs/essential/quickstart-backend.md +++ b/docs/docs/essential/quickstart-backend.md @@ -6,7 +6,8 @@ sidebar_position: 4 ```bash cd backend pip install -r requirements.txt -python manage.py migrate +# 如有需要代理: pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple +#python manage.py migrate python manage.py runserver ``` diff --git a/docs/docs/essential/quickstart-frontend.md b/docs/docs/essential/quickstart-frontend.md index ef3b300..7b65364 100644 --- a/docs/docs/essential/quickstart-frontend.md +++ b/docs/docs/essential/quickstart-frontend.md @@ -6,9 +6,9 @@ sidebar_position: 3 以 web-antd 为例: ```bash -cd web/apps/web-antd +cd web pnpm install -pnpm dev +npm run dev:antd ``` -其他前端(web-ele、web-naive)步骤类似,进入对应目录执行安装与启动命令。 \ No newline at end of file +其他前端(web-ele、web-naive)暂时未兼容, 未来支持web-ele \ No newline at end of file