• @guqing guqing created branch refactor/4543 in guqing/halo

    guqing/halo

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

    0 0
  • @guqing guqing pushed to feature/notification in guqing/halo

    Below is the list of commits:

    • Prepare for developing Halo 2.10.0 (#4533) (2baf6ae)
    • Merge remote-tracking branch 'upstream/main' into feature/notification (a050dbd)
    0 0
  • @guqing guqing pushed to feature/notification in guqing/halo

    Below is the list of commits:

    • refactor: reason structure and add unsubscribe router (b38e60f)
    0 0
  • @guqing guqing commented on issue #4372 in halo-dev/halo

    我的 MySQL 数据库 3306 端口已经被占用了 本项目修改端口还不能部署成功,有什么解决办法么

    尝试使用下面的 docker-compose.yaml ,此配置基于官方文档提供的配置并去掉了 halodb 中的 ports: - "3306:3306" 配置,参考文档 https://docs.halo.run/getting-started/install/docker-compose

    version: "3"
    
    services:
      halo:
        image: halohub/halo:2.9
        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/
    
      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
        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:
    0 0
  • @guqing guqing commented on issue #4551 in halo-dev/halo

    添加了 postSlugGenerationStrategy 的默认值,console 部分 @GodlessLiu 继续改就好了,我发现文章点保存的之后规则是还是默认的时间戳应该功能不全

    0 0
  • @guqing guqing pushed to fix/article-slug in GodlessLiu/halo

    Below is the list of commits:

    • refactor: add default value for post slug generation strategy option (7e15d30)
    0 0
  • @guqing guqing commented on issue #4551 in halo-dev/halo

    @guqing 添加设置在主题路由设置下,而不是文章设置
    @ruibaby 在主题路由设置下?

    将 slug 生成策略放在路由规则设置下可能会与其它路由相关的设置混淆,并且不够直观。路由规则设置主要关注于定义 URL 的格式和结构,以便访问特定的资源。slug 生成策略应该只是为了更好的填充文章的基本属性而准备的相关性更高

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

    @guqing 添加设置在主题路由设置下,而不是文章设置下,还有第一次修改设置需要刷新页面才会生效,初步判断出错的地方可能是use-global-info.ts下面设置了缓存

    image

    @ruibaby 在主题路由设置下?

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

    @GodlessLiu 已在 globalinfo 中添加 postSlugGenerationStrategy 字段

    0 0
  • @guqing guqing pushed to fix/article-slug in GodlessLiu/halo

    Below is the list of commits:

    • feat: add post slug generation strategy to globalinfo (6943b73)
    0 0