• @guqing guqing commented on issue #4235 in halo-dev/halo

    /cherry-pick release-2.7.0

    0 0
  • @guqing guqing commented on issue #4179 in halo-dev/halo

    /milestone 2.8.x
    /cherry-pick release-2.7.0

    0 0
  • @guqing guqing commented on issue #4241 in halo-dev/halo

    /cherry-pick release-2.7.0

    0 0
  • @guqing guqing opened pull request #4241 in halo-dev/halo

    What type of PR is this?

    /kind bug
    /kind improvement
    /area core
    /milestone 2.8.x

    What this PR does / why we need it:

    修复插件被卸载时 delete 生命周期方法不会被触发的问题

    how to test it?

    1. 测试开发模式下卸载插件,delete 生命周期方法被触发且不会误删项目目录
    2. 测试生产模式下插件卸载,文件正确被删除且触发 delete 生命生命周期方法

    Which issue(s) this PR fixes:

    Fixes #4238

    Does this PR introduce a user-facing change?

    修复插件被卸载时 delete 生命周期方法不会被触发的问题
    
    0 0
  • @guqing guqing pushed to bugfix/4238 in guqing/halo

    Below is the list of commits:

    • fix: plugin delete lifecycle method will not be triggered when the plugin is uninstalled (c42703b)
    0 0
  • @guqing guqing pushed to bugfix/4238 in guqing/halo

    Below is the list of commits:

    • fix: plugin delete lifecycle method will not be triggered when the plugin is uninstalled (eff9d8d)
    0 0
  • @guqing guqing created branch bugfix/4238 in guqing/halo

    guqing/halo

    一款优秀的开源博客发布应用。

    0 0
  • @guqing guqing opened issue #4238 in halo-dev/halo

    What is version of Halo has the issue?

    2.7.0

    What database are you using?

    H2

    What is your deployment method?

    Docker

    Your site address.

    No response

    What happened?

    如题,当插件被卸载时 delete 生命周期方法没有被触发

    Relevant log output

    No response

    Additional information

    /kind bug
    /area core
    /milestone 2.8.0
    /assign

    0 0
  • @guqing guqing created a review on pull request #4222 in halo-dev/halo

    /approve

    0 0
  • @guqing guqing commented on issue #4236 in halo-dev/halo

    我试了一下并没有复现,你可以提供一个可以复现的配置吗,我使用的配置如下:

    version: "3"
    
    services:
      halo:
        image: halohub/halo:2.7
        container_name: halo
        restart: on-failure:3
        depends_on:
          halodb:
            condition: service_healthy
        networks:
          halo_network:
        volumes:
          - ./:/root/.halo2
        ports:
          - "8090:8090"
        healthcheck:
          test: ["CMD", "curl", "-f", "http://localhost:8090/actuator/health/readiness"]
          interval: 30s
          timeout: 5s
          retries: 5
          start_period: 30s
        command:
          - --spring.r2dbc.url=r2dbc:pool:mysql://halodb:3306/halo
          - --spring.r2dbc.username=root
          # MySQL 的密码,请保证与下方 MYSQL_ROOT_PASSWORD 的变量值一致。
          - --spring.r2dbc.password=o#DwN&JSa56
          - --spring.sql.init.platform=mysql
          # 外部访问地址,请根据实际需要修改
          - --halo.external-url=http://localhost:8090/
          # 初始化的超级管理员用户名
          - --halo.security.initializer.superadminusername=admin
          # 初始化的超级管理员密码
          - --halo.security.initializer.superadminpassword=P@88w0rd
    
      halodb:
        image: mysql:8.0.31
        container_name: halodb
        restart: on-failure:3
        networks:
          halo_network:
        command: 
          - --default-authentication-plugin=mysql_native_password
          - --character-set-server=utf8mb4
          - --collation-server=utf8mb4_general_ci
          - --explicit_defaults_for_timestamp=true
        volumes:
          - ./mysql:/var/lib/mysql
          - ./mysqlBackup:/data/mysqlBackup
        ports:
          - "3306:3306"
        healthcheck:
          test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "--silent"]
          interval: 3s
          retries: 5
          start_period: 30s
        environment:
          # 请修改此密码,并对应修改上方 Halo 服务的 SPRING_R2DBC_PASSWORD 变量值
          - MYSQL_ROOT_PASSWORD=o#DwN&JSa56
          - MYSQL_DATABASE=halo
    
    networks:
      halo_network:

    docker compose up -d 启动后 halo 的账户密码为:

    admin
    P@88w0rd
    
    0 0