mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-04 13:50:39 +00:00
Fix wrong serve command log location and commit repo action
This commit is contained in:
parent
09e7e76204
commit
197c4d4a5b
4 changed files with 11 additions and 7 deletions
|
@ -71,7 +71,7 @@ var Service struct {
|
|||
ResetPwdCodeLives int
|
||||
}
|
||||
|
||||
func exeDir() (string, error) {
|
||||
func ExecDir() (string, error) {
|
||||
file, err := exec.LookPath(os.Args[0])
|
||||
if err != nil {
|
||||
return "", err
|
||||
|
@ -244,7 +244,7 @@ func newNotifyMailService() {
|
|||
|
||||
func NewConfigContext() {
|
||||
//var err error
|
||||
workDir, err := exeDir()
|
||||
workDir, err := ExecDir()
|
||||
if err != nil {
|
||||
fmt.Printf("Fail to get work directory: %s\n", err)
|
||||
os.Exit(2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue