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

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