Recompile elm code on server startup

This commit is contained in:
stuart nelson 2017-01-13 11:46:24 -05:00
parent 7bb0543b1c
commit b1ddde61a8

View File

@ -40,6 +40,8 @@ func main() {
return cmd.Run()
}
go recompileFn()
watcher, err := guac.NewWatcher(ctx, "./src", recompileFn)
if err != nil {
log.Fatalf("error watching: %v", err)