1
0
mirror of https://github.com/strongdm/comply synced 2025-12-06 14:24:12 +00:00

Serve now provides an HTTP server, listening on port 4000 by default. Listen port can be set with the --port flag to the serve command. Websocket refresh remains intact.

This commit is contained in:
Justin McCarthy
2019-03-16 00:02:50 -07:00
parent 0c9dbd736b
commit ef32942dad
4 changed files with 29 additions and 6 deletions

View File

@@ -7,8 +7,15 @@ import (
)
var serveCommand = cli.Command{
Name: "serve",
Usage: "live updating version of the build command",
Name: "serve",
Usage: "live updating version of the build command",
Flags: []cli.Flag{
cli.IntFlag{
Name: "port",
Value: 4000,
Destination: &render.ServePort,
},
},
Action: serveAction,
Before: beforeAll(pandocMustExist, cleanContainers),
}