12345678910111213141516171819 |
- ## NOTE
- # 一、构建镜像
- # 构建并运行
- echo "BEGIN:" \
- && project_path="/home/server/repositories/repositories/sri-robot.cn/project.mccbts-ar-py/module-backend-fastapi" \
- && cd ${project_path} \
- && sudo docker-compose --file compose_test.yml down \
- && sudo docker-compose --file compose_test.yml up --detach --build \
- && sudo docker logs --follow sri-module-backend-fastapi
- # 二、日常调试命令
- sudo docker restart sri-module-backend-fastapi && sudo docker logs -f sri-module-backend-fastapi
- # 三、在win上运行命令
- # 1
- cd module-backend-fastapi
- # 2
- python main.py
|