1
0
mirror of https://github.com/schollz/cowyo.git synced 2023-08-10 21:13:00 +03:00

Print server version on startup

Former-commit-id: 4717d5d066
This commit is contained in:
Zack Scholl 2017-03-23 20:13:58 -06:00
parent 5d273c037a
commit 14f563572d
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
b4e84fb2d89a335e6fe159a3e995a1daff218132 9ec07e7f240432f5f3afd17d589c8a83c4501f67

View File

@ -23,7 +23,7 @@ func main() {
} }
pathToData = c.GlobalString("data") pathToData = c.GlobalString("data")
os.MkdirAll(pathToData, 0755) os.MkdirAll(pathToData, 0755)
fmt.Printf("\nRunning CowYo at http://%s:%s\n\n", GetLocalIP(), c.GlobalString("port")) fmt.Printf("\nRunning cowyo server (version %s) at http://%s:%s\n\n", version, GetLocalIP(), c.GlobalString("port"))
serve(c.GlobalString("port")) serve(c.GlobalString("port"))
return nil return nil
} }