diff --git a/build.sh b/build.sh index abbf58b1..6b55e744 100644 --- a/build.sh +++ b/build.sh @@ -96,5 +96,5 @@ elif [ "$1" = "release" ]; then BUILD release RELEASE else - echo -e "${RED_COLOR} 错误的命令${RES}" + echo -e "${RED_COLOR} Parameter error ${RES}" fi diff --git a/server/static.go b/server/static.go index fefcca62..818d8c89 100644 --- a/server/static.go +++ b/server/static.go @@ -25,8 +25,11 @@ func InitIndex() { } index, err = public.Public.Open(fmt.Sprintf("%s.html", conf.Conf.Assets)) if err != nil { - log.Fatalf(err.Error()) - return + log.Error(err.Error()) + index, err = public.Public.Open("index.html") + if err != nil { + log.Fatal(err.Error()) + } } data, _ := ioutil.ReadAll(index) conf.RawIndexHtml = string(data)