From 14d80646e88e7ef730dbeb267d8a8b7efd1dcba2 Mon Sep 17 00:00:00 2001 From: louis <869322496@qq.com> Date: Wed, 28 Feb 2024 11:02:39 +0800 Subject: [PATCH] =?UTF-8?q?build:=20=E8=87=AA=E5=8A=A8=E9=83=A8=E7=BD=B2?= =?UTF-8?q?=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 deploy.sh diff --git a/deploy.sh b/deploy.sh new file mode 100644 index 0000000..21b1986 --- /dev/null +++ b/deploy.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +# 拉取最新的代码 +git pull + +# 关闭并删除 docker-compose 启动的服务 +docker-compose down + +# 删除指定的 Docker 镜像 +docker rmi huaxin_base_frontend-huaxin-base-frontend + +# 使用 docker-compose 启动服务 +docker-compose up -d \ No newline at end of file