pull/2336/head
withchao 1 year ago
parent e9f46271ba
commit 6363358ad4

@ -17,13 +17,9 @@ package main
import ( import (
"github.com/openimsdk/open-im-server/v3/pkg/common/cmd" "github.com/openimsdk/open-im-server/v3/pkg/common/cmd"
"github.com/openimsdk/tools/system/program" "github.com/openimsdk/tools/system/program"
"os"
) )
func main() { func main() {
if len(os.Args) == 1 {
os.Args = []string{os.Args[0], "-i", "0", "-c", "/Users/chao/Desktop/project/open-im-server/config"}
}
if err := cmd.NewFriendRpcCmd().Exec(); err != nil { if err := cmd.NewFriendRpcCmd().Exec(); err != nil {
program.ExitWithError(err) program.ExitWithError(err)
} }

Loading…
Cancel
Save