Commit 3d61d2fe by lichenggang

环境检测

parent 17cf2994
Showing with 6 additions and 3 deletions
...@@ -9,9 +9,12 @@ import ( ...@@ -9,9 +9,12 @@ import (
func main() { func main() {
Directory := "E:\\test_logs" // directory of the log Directory := "E:\\test_logs" // directory of the log
TestPort := 9997 TestPort := 9997
isproduct := os.Getenv("GOLOGENV") logenv := os.Getenv("GOLOGENV")
if isproduct == "TRUE" { if logenv == "TEST" {
Directory = "" Directory = "/data/soft/bigdatav3.0/test_rsync_log"
}
if logenv == "PRODUCT" {
Directory = "/data/soft/rsync_log"
} }
code.See(Directory, TestPort) code.See(Directory, TestPort)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment