chore: 移除旧版前端

This commit is contained in:
2026-05-19 15:32:42 +08:00
parent 6245c7123c
commit d30dd0da25
125 changed files with 26 additions and 61267 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ COPY --from=frontend-build /frontend/dist /app/frontend/dist
RUN chmod +x /app/start.sh 2>/dev/null || true
EXPOSE 9081 9082
EXPOSE 9081
HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \
CMD curl -f http://localhost:9081/health || exit 1
+1 -1
View File
@@ -55,4 +55,4 @@ sh update.sh
- 默认镜像版本
- 版本要求范围
- 数据库账号密码
- 端口映射:新版前端 `19081 -> 9081`,旧版前端 `19082 -> 9082`
- 端口映射:前端 `19081 -> 9081`
+5 -12
View File
@@ -36,12 +36,8 @@ MYSQL_HOST = "capacity-mysql"
MYSQL_PORT = 3306
# 应用端口映射
APP_NEW_PORT_HOST = 19081
APP_NEW_PORT_CONTAINER = 9081
APP_OLD_PORT_HOST = 19082
APP_OLD_PORT_CONTAINER = 9082
APP_PORT_HOST = APP_NEW_PORT_HOST
APP_PORT_CONTAINER = APP_NEW_PORT_CONTAINER
APP_PORT_HOST = 19081
APP_PORT_CONTAINER = 9081
MYSQL_PORT_HOST = 13306
MYSQL_PORT_CONTAINER = 3306
@@ -298,8 +294,7 @@ check_port() {{
fi
{{}}
check_port {APP_NEW_PORT_HOST} "New frontend"
check_port {APP_OLD_PORT_HOST} "Old frontend"
check_port {APP_PORT_HOST} "Frontend"
check_port {MYSQL_PORT_HOST} "MySQL"
echo ""
@@ -446,8 +441,7 @@ echo "=========================================="
echo "Deployment completed!"
echo "=========================================="
echo ""
echo "New frontend: http://localhost:{APP_NEW_PORT_HOST}"
echo "Old frontend: http://localhost:{APP_OLD_PORT_HOST}"
echo "Frontend: http://localhost:{APP_PORT_HOST}"
echo ""
echo "Commands:"
echo " Logs: $DOCKER_COMPOSE_CMD logs -f"
@@ -643,8 +637,7 @@ echo "=========================================="
echo "Update completed!"
echo "=========================================="
echo ""
echo "New frontend: http://localhost:{APP_NEW_PORT_HOST}"
echo "Old frontend: http://localhost:{APP_OLD_PORT_HOST}"
echo "Frontend: http://localhost:{APP_PORT_HOST}"
echo ""
echo "Database status:"
if docker ps --format "{{.Names}}" | grep -q "capacity-mysql"; then
-1
View File
@@ -16,7 +16,6 @@ services:
restart: unless-stopped
ports:
- "19081:9081"
- "19082:9082"
volumes:
# 持久化数据
- ./cache:/app/cache