mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
Add bootup output to reflect that kolide binary is serving (#29)
Example output: ```bash $ kolide-ose serve => kolide 0.1.0 application starting on https://:8080 => Run `kolide help serve` for more startup options Use Ctrl-C to stop time="2016-08-02T14:25:02-07:00" level=info msg="some info logs!" file=proc.go func=runtime.main line=188 time="2016-08-02T14:25:02-07:00" level=error msg="some error logs :(" file=proc.go func=runtime.main line=188 ``` close #26
This commit is contained in:
parent
c802a2dbc0
commit
fc1b8eaa05
3 changed files with 6 additions and 2 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -1,2 +1,3 @@
|
|||
kolide.exe
|
||||
kolide
|
||||
kolide
|
||||
kolide-ose*
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ var defaultMysqlConfigData = mysqlConfigData{
|
|||
}
|
||||
|
||||
var defaultServerConfigData = serverConfigData{
|
||||
Address: ":8080",
|
||||
Address: "127.0.0.1:8080",
|
||||
Cert: "./tools/kolide.crt",
|
||||
Key: "./tools/kolide.key",
|
||||
}
|
||||
|
|
|
|||
|
|
@ -122,6 +122,9 @@ func main() {
|
|||
dropTables(db)
|
||||
createTables(db)
|
||||
case serve.FullCommand():
|
||||
fmt.Printf("=> %s %s application starting on https://%s\n", app.Name, version, config.Server.Address)
|
||||
fmt.Println("=> Run `kolide help serve` for more startup options")
|
||||
fmt.Println("Use Ctrl-C to stop\n\n")
|
||||
CreateServer().RunTLS(
|
||||
config.Server.Address,
|
||||
config.Server.Cert,
|
||||
|
|
|
|||
Loading…
Reference in a new issue