gogs在迁移机器或更换路径后出现的各种异常
1.启动失败
报错提示:
[FATAL] [...ogs.io/gogs/internal/conf/log.go:147 InitLogging()] Failed to create log directory: mkdir F:: The system cannot find the path specified.
执行后提示路径有问题。
需要在 /custom/conf/app.ini 修改所有的path指向正确路径
2.提示 error :remote: hooks/pre-receive: 大致就是git钩子还是找不到正确路径
需要在 gogs后台管理面板-控制面板-管理员操作-下拉选择(重新同步所有仓库的 pre-receive、update 和 post-receive 钩子)-执行