piupuer / gin-web Goto Github PK
View Code? Open in Web Editor NEW由gin + gorm + jwt + casbin组合实现的RBAC权限管理脚手架Golang版, 搭建完成即可快速、高效投入业务开发
Home Page: https://piupuer.github.io/gin-web-slate
License: MIT License
由gin + gorm + jwt + casbin组合实现的RBAC权限管理脚手架Golang版, 搭建完成即可快速、高效投入业务开发
Home Page: https://piupuer.github.io/gin-web-slate
License: MIT License
docker
而使用 go build -o main
的话,打包出来的二进制,放到服务器的时候读取配置文件的路径还是本地打包的配置的绝对路径。想问下怎么解决?如果单独部署二进制文件的话。time="2022-03-25T22:44:40+08:00" level=error msg="[gin-web]project run failed: exec: "mysqldump": executable file not found in %PATH%\nstack: goroutine 1 [running]:\nruntime/debug.Stack()\n\tC:/Program Files/Go/src/runtime/debug/stack.go:24
gin-web/pkg/service/sys_menu.go
Line 16 in d8c6294
这里的Where参数写错了.
启动后, 数据库是 空的, 比如 用户 / 角色 都是 空的.
有没有 初始的 数据 分享下哈, 谢谢!
The program trys to connect to Redis even when redis config enable setting to false
redis:
# redis uri like this:
# redis://[:password@]host[:port][/dbnumber]
# redis-socket://[:password@]path[?db=dbnumber]
# redis-sentinel://[:password@]host1[:port][,host2:[:port]][,hostN:[:port]][?master=masterName]
uri: 'redis://127.0.0.1:6379/0'
# binlog cache key
binlog-pos: mysql_binlog_pos
# enable redis
enable: false
# enable binlog redis service(pkg.cache_service)
enable-binlog: false
Log info is:
redis command error: SADD failed: dial tcp 127.0.0.1:6379: connect: connection refused
asynq: pid=7497 2022/07/09 10:01:28.467050 ERROR: Dequeue error: UNKNOWN: redis eval error: dial tcp 127.0.0.1:6379: connect: connection refused
asynq: pid=7497 2022/07/09 10:01:30.015595 ERROR: cannot subscribe to cancelation channel: UNKNOWN: redis pubsub receive error: dial tcp 127.0.0.1:6379: connect: connection refused
大佬 登录接口502了
use-redis: true时,登录失败,好像是Redis没有初始化数据。
本地运行时,autoMigrate无法自动建表,提示:项目启动失败: Error 1146: Table 'gin_web.tb_sys_user' doesn't exist。
请问如何解决?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.