Giter Club home page Giter Club logo

Comments (7)

ch3nnn avatar ch3nnn commented on July 30, 2024 1

已修复。可以 clone 最新代码。 @likuankuan

from webstack-go.

ch3nnn avatar ch3nnn commented on July 30, 2024

请检查一下你修改的这行代码webstack-go/internal/services/category/service_tree.go:33 提示"无效的内存地址或者空指针"

from webstack-go.

likuankuan avatar likuankuan commented on July 30, 2024

我可能表达的有问题,我只修改了前端图标。
不修改代码也会有这个问题,麻烦您帮忙排查一下。

from webstack-go.

ch3nnn avatar ch3nnn commented on July 30, 2024

我重新部署项目把 category 表数据全部删除也没复现。 是否可以说下操作步骤或者这部分代码。

from webstack-go.

likuankuan avatar likuankuan commented on July 30, 2024

可以这样复现:
初始化后只删除webstack-go-service

docker-compose -f docker-compose.yml up -d
http://127.0.0.1:9999/install
docker-compose -f docker-compose.yml restart webstack-go-service
docker-compose -f docker-compose.yml stop webstack-go-service
docker-compose -f docker-compose.yml rm webstack-go-service
docker-compose -f docker-compose.yml up -d

导致的问题:
即使我把webstack-go-mysql的数据持久化了

    volumes:
      - /var/lib/mysql:/var/lib/mysql

只要是有初始化过的数据库,重启是起不来的。

from webstack-go.

ch3nnn avatar ch3nnn commented on July 30, 2024

可以在webstack-go-service 容器里面创建INSTALL.lock文件。这个文件表示项目安装完成标识, 初始化数据表结构和数据。

docker exec -it webstack-go-service sh
touch INSTALL.lock
exit
docker restart webstack-go-service

from webstack-go.

likuankuan avatar likuankuan commented on July 30, 2024

好的,非常感谢。

from webstack-go.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.