From 6eccf5e24a8dc01adf810f2bcf2ac3a2345db116 Mon Sep 17 00:00:00 2001 From: Kenny Yang Date: Mon, 19 May 2025 23:17:25 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E5=9C=A8=E6=9C=AC=E5=9C=B0=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E4=B8=AD=E6=B7=BB=E5=8A=A0docker=20compose=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在main_local.sh脚本中添加了进入/home/app目录并启动docker compose的命令,以便在本地环境中自动启动应用容器 --- main_local.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main_local.sh b/main_local.sh index 036016f..e317ad2 100644 --- a/main_local.sh +++ b/main_local.sh @@ -2,4 +2,7 @@ cd ~ || exit wget -O ~/.init_env.sh https://raw.githubusercontent.com/shakenny/containerized-stack/refs/heads/main/local/init_env.sh chmod +x ~/.init_env.sh -~/.init_env.sh \ No newline at end of file +~/.init_env.sh + +cd /home/app +docker compose up -d \ No newline at end of file