README-usage.txt 587 B

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