Casper f4ae8b4b1e 首次提交 11 mēneši atpakaļ
..
api f4ae8b4b1e 首次提交 11 mēneši atpakaļ
data f4ae8b4b1e 首次提交 11 mēneši atpakaļ
test f4ae8b4b1e 首次提交 11 mēneši atpakaļ
unit f4ae8b4b1e 首次提交 11 mēneši atpakaļ
Dockerfile f4ae8b4b1e 首次提交 11 mēneši atpakaļ
README-usage.bash f4ae8b4b1e 首次提交 11 mēneši atpakaļ
README-usage.md f4ae8b4b1e 首次提交 11 mēneši atpakaļ
README-usage.txt f4ae8b4b1e 首次提交 11 mēneši atpakaļ
app.py f4ae8b4b1e 首次提交 11 mēneši atpakaļ
build.Dockerfile f4ae8b4b1e 首次提交 11 mēneši atpakaļ
compose.yml f4ae8b4b1e 首次提交 11 mēneši atpakaļ
cythonize.py f4ae8b4b1e 首次提交 11 mēneši atpakaļ
default_data.py f4ae8b4b1e 首次提交 11 mēneši atpakaļ
default_data_insert.py f4ae8b4b1e 首次提交 11 mēneši atpakaļ
hub.py f4ae8b4b1e 首次提交 11 mēneši atpakaļ
main.py f4ae8b4b1e 首次提交 11 mēneši atpakaļ
main.spec f4ae8b4b1e 首次提交 11 mēneši atpakaļ
run-c.sh f4ae8b4b1e 首次提交 11 mēneši atpakaļ
run-exe-wrap.sh f4ae8b4b1e 首次提交 11 mēneši atpakaļ
run-exe.sh f4ae8b4b1e 首次提交 11 mēneši atpakaļ
run.sh f4ae8b4b1e 首次提交 11 mēneši atpakaļ

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