Casper f4ae8b4b1e 首次提交 há 7 meses atrás
..
api f4ae8b4b1e 首次提交 há 7 meses atrás
data f4ae8b4b1e 首次提交 há 7 meses atrás
test f4ae8b4b1e 首次提交 há 7 meses atrás
unit f4ae8b4b1e 首次提交 há 7 meses atrás
Dockerfile f4ae8b4b1e 首次提交 há 7 meses atrás
README-usage.bash f4ae8b4b1e 首次提交 há 7 meses atrás
README-usage.md f4ae8b4b1e 首次提交 há 7 meses atrás
README-usage.txt f4ae8b4b1e 首次提交 há 7 meses atrás
app.py f4ae8b4b1e 首次提交 há 7 meses atrás
build.Dockerfile f4ae8b4b1e 首次提交 há 7 meses atrás
compose.yml f4ae8b4b1e 首次提交 há 7 meses atrás
cythonize.py f4ae8b4b1e 首次提交 há 7 meses atrás
default_data.py f4ae8b4b1e 首次提交 há 7 meses atrás
default_data_insert.py f4ae8b4b1e 首次提交 há 7 meses atrás
hub.py f4ae8b4b1e 首次提交 há 7 meses atrás
main.py f4ae8b4b1e 首次提交 há 7 meses atrás
main.spec f4ae8b4b1e 首次提交 há 7 meses atrás
run-c.sh f4ae8b4b1e 首次提交 há 7 meses atrás
run-exe-wrap.sh f4ae8b4b1e 首次提交 há 7 meses atrás
run-exe.sh f4ae8b4b1e 首次提交 há 7 meses atrás
run.sh f4ae8b4b1e 首次提交 há 7 meses atrás

README-usage.bash

## NOTE

# 一、构建操作
# 调试
echo "BEGIN:" \
&& project_path="/home/ubuntu/repositories/repositories/casperz.py-project/project-fastapi-hs" \
&& cd ${project_path} \
&& sudo docker-compose --file compose.yml down \
&& sudo docker-compose --file compose.yml up --detach --build \
&& sudo docker exec -it sri-module-server-fastapi bash
# 启动
echo "BEGIN:" \
&& project_path="/home/ubuntu/repositories/repositories/casperz.py-project/project-fastapi-hs" \
&& cd ${project_path} \
&& sudo docker-compose --file compose.yml down \
&& sudo docker-compose --file compose.yml up --detach --build \
&& sudo docker-compose --file compose.yml logs --follow
# 强制构建并运行
echo "BEGIN:" \
&& project_path="/home/ubuntu/repositories/repositories/casperz.py-project/project-fastapi-hs" \
&& cd ${project_path} \
&& sudo docker-compose --file compose.yml down \
&& sudo docker-compose --file compose.yml build --no-cache \
&& sudo docker-compose --file compose.yml up --detach \
&& sudo docker logs --follow sri-module-server-flask

# 二、日常调试命令
sudo chmod -R 777 /home/ubuntu/repositories/repositories
sudo docker restart sri-module-hs01 && sudo docker logs -f sri-module-hs01