Casper f4ae8b4b1e 首次提交 11 mesi fa
..
api f4ae8b4b1e 首次提交 11 mesi fa
data f4ae8b4b1e 首次提交 11 mesi fa
test f4ae8b4b1e 首次提交 11 mesi fa
unit f4ae8b4b1e 首次提交 11 mesi fa
Dockerfile f4ae8b4b1e 首次提交 11 mesi fa
README-usage.bash f4ae8b4b1e 首次提交 11 mesi fa
README-usage.md f4ae8b4b1e 首次提交 11 mesi fa
README-usage.txt f4ae8b4b1e 首次提交 11 mesi fa
app.py f4ae8b4b1e 首次提交 11 mesi fa
build.Dockerfile f4ae8b4b1e 首次提交 11 mesi fa
compose.yml f4ae8b4b1e 首次提交 11 mesi fa
cythonize.py f4ae8b4b1e 首次提交 11 mesi fa
default_data.py f4ae8b4b1e 首次提交 11 mesi fa
default_data_insert.py f4ae8b4b1e 首次提交 11 mesi fa
hub.py f4ae8b4b1e 首次提交 11 mesi fa
main.py f4ae8b4b1e 首次提交 11 mesi fa
main.spec f4ae8b4b1e 首次提交 11 mesi fa
run-c.sh f4ae8b4b1e 首次提交 11 mesi fa
run-exe-wrap.sh f4ae8b4b1e 首次提交 11 mesi fa
run-exe.sh f4ae8b4b1e 首次提交 11 mesi fa
run.sh f4ae8b4b1e 首次提交 11 mesi fa

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