Skip to content

Commit

Permalink
Add to build script
Browse files Browse the repository at this point in the history
  • Loading branch information
peteretelej committed Oct 5, 2016
1 parent f737abd commit 6948f4f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions cmd/dserve/build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#!/bin/bash
set -e

cd ../../

go vet ./...

cd cmd/dserve

rm -rf releases/*

# windows and linux x64
Expand Down
2 changes: 1 addition & 1 deletion cmd/dserve/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ func main() {
}

func handleFatal(err error) {
log.Print("dserve fatal error: %v", err)
log.Printf("dserve fatal error: %v", err)
time.Sleep(5 * time.Second)
}
1 change: 1 addition & 0 deletions dserve.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"time"
)

// Serve launches HTTP server serving on listenAddr and servers a basic_auth secured directory at secure/static
func Serve(listenAddr string, secureDir bool) error {
mux := http.NewServeMux()

Expand Down

0 comments on commit 6948f4f

Please sign in to comment.