bug fixed

master
old易 2025-05-12 10:17:48 +08:00
parent aae82e5153
commit 9879239124
4 changed files with 6 additions and 6 deletions

View File

@ -1,7 +1,7 @@
{
"$schema": "https://gitee.com/dotnetchina/Furion/raw/v4/schemas/v4/furion-schema.json",
"Urls": "http://*:5009", //
"Urls": "http://*:5010", //
// "https_port": 44325,
"AllowedHosts": "*",

View File

@ -9,7 +9,7 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
WORKDIR /app
# 暴露应用端口
EXPOSE 5009
EXPOSE 5010
COPY . .
# 设置容器启动命令
ENTRYPOINT ["dotnet", "Admin.NET.Web.Entry.dll"]

View File

@ -7,7 +7,7 @@ NAMESPACE="ycymedu"
REPO_NAME="tuiwucarrerv1"
IMAGE_NAME="$PRIVATE_REGISTRY/$REPO_NAME"
TAG=$(date +%Y%m%d%H%M%S)
PORT=5009
PORT=5010
REMOTE_SERVER="192.168.104.102"
REMOTE_USER="app"
@ -73,7 +73,7 @@ ssh -o StrictHostKeyChecking=no -i "$SSH_PRIVATE_KEY_PATH" "$REMOTE_USER@$REMOTE
PRIVATE_REGISTRY="192.168.104.102:5000"
REPO_NAME="tuiwucarrerv1"
IMAGE_NAME="\$PRIVATE_REGISTRY/\$REPO_NAME"
PORT=5009
PORT=5010
echo "🚀 拉取最新 Docker 镜像: \$IMAGE_NAME:$TAG 和 latest"
sudo docker pull "\$IMAGE_NAME:$TAG"

View File

@ -1,6 +1,6 @@
#!/bin/bash
# 设置Docker镜像的仓库名和标签前缀
REPO_NAME="zhiyuanv3"
REPO_NAME="tuiwucarrerv1"
TAG_PREFIX="build_"
# 获取当前时间戳作为标签后缀
@ -26,7 +26,7 @@ docker build -t "${TAG}" . && {
# 启动新的容器(这里只是示例参数,你可能需要根据你的应用进行调整)
echo "Starting new container ${CONTAINER_NAME}..."
docker run \
-p 5006:5006 \
-p 5010:5010 \
--restart unless-stopped \
--name "${CONTAINER_NAME}" \
-d "${TAG}"