update name

master
taoshihan 1 month ago
parent 3cd76538ba
commit 3bcf444d34

@ -1,7 +1,6 @@
package cmd package cmd
import ( import (
"fmt"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/zh-five/xdaemon" "github.com/zh-five/xdaemon"
@ -65,7 +64,7 @@ func run() {
router.InitViewRouter(engine) router.InitViewRouter(engine)
router.InitApiRouter(engine) router.InitApiRouter(engine)
//记录pid //记录pid
os.WriteFile("gofly.sock", []byte(fmt.Sprintf("%d,%d", os.Getppid(), os.Getpid())), 0666) //os.WriteFile("gofly.sock", []byte(fmt.Sprintf("%d,%d", os.Getppid(), os.Getpid())), 0666)
//限流类 //限流类
tools.NewLimitQueue() tools.NewLimitQueue()
//清理 //清理

@ -56,11 +56,11 @@ cd goflylivechat
``` ```
* Initialize the Database * Initialize the Database
```php ```php
go run gofly.go install go run main.go install
``` ```
* Run the Application * Run the Application
```php ```php
go run gofly.go server go run main.go server
``` ```
* Build executable * Build executable
```php ```php

Loading…
Cancel
Save