diff --git a/readme.md b/readme.md index 92c7018..0ca5255 100644 --- a/readme.md +++ b/readme.md @@ -44,27 +44,23 @@ 在任意目录 git clone https://github.com/taoshihan1991/go-fly.git 进入go-fly 目录 + +2. 导入数据库 go run go-fly.go install -2. 源码运行 go run go-fly.go server +3. 源码运行 go run go-fly.go server -3. 源码打包 go build go-fly.go 会生成go-fly可以执行文件 +3. 源码打包 go build -o kefu 会生成kefu可以执行文件 -4. 导入数据库(会删除表清空数据) ./go-fly install 5. 二进制文件运行 - linux: ./go-fly server [可选 -p 8082 -d] + linux: ./kefu server [可选 -p 8082 -d] - windows: go-fly.exe server [可选 -p 8082 -d] + windows: kefu.exe server [可选 -p 8082 -d] 6. 关闭程序 - ./go-fly stop - linux下使用ps命令结合kill命令杀掉进程 - - ps -ef|grep go-fly 看到父子进程id - - kill 进程父进程id ; kill 进程子进程id + killall kefu ### nginx部署 diff --git a/static/js/functions.js b/static/js/functions.js index 8ea10d1..d9a3196 100644 --- a/static/js/functions.js +++ b/static/js/functions.js @@ -208,4 +208,13 @@ function formatDate(dateString, format = 'yyyy-MM-dd HH:mm:ss') { return formattedDate; } +function copyText(text) { + var target = document.createElement('input') + target.value = text + document.body.appendChild(target) + target.select() + document.execCommand("copy"); + document.body.removeChild(target); + return true; +} ; diff --git a/static/templates/header.html b/static/templates/header.html index d8acdee..1d1d87a 100644 --- a/static/templates/header.html +++ b/static/templates/header.html @@ -9,7 +9,7 @@ - + diff --git a/static/templates/setting_deploy.html b/static/templates/setting_deploy.html index aa646fb..1152935 100644 --- a/static/templates/setting_deploy.html +++ b/static/templates/setting_deploy.html @@ -4,34 +4,17 @@ - - - - - + + + + + <{host}>/chatIndex?kefu_id=kefu2 + 复制 + + - - - - + +