From 271974e98fdd1ec5e7216051d3b1ba337536a85e Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Thu, 5 Feb 2015 18:48:16 -0800 Subject: [PATCH] fixed go.rice issue --- plugin/notify/slack.go | 4 +--- server/main.go | 5 +---- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/plugin/notify/slack.go b/plugin/notify/slack.go index 395a4df6..7599ba51 100644 --- a/plugin/notify/slack.go +++ b/plugin/notify/slack.go @@ -98,7 +98,5 @@ func (s *Slack) send(msg string, fallback string, color string) error { return err } - go sendJson(s.WebhookUrl, payload, nil) - - return nil + return sendJson(s.WebhookUrl, payload, nil) } diff --git a/server/main.go b/server/main.go index b5192380..146bc2ca 100644 --- a/server/main.go +++ b/server/main.go @@ -125,13 +125,10 @@ func main() { pub = pubsub.NewPubSub() // create handler for static resources - assets := rice.MustFindBox("app").HTTPBox() assetserve := http.FileServer(rice.MustFindBox("app").HTTPBox()) http.Handle("/robots.txt", assetserve) + http.Handle("/", assetserve) http.Handle("/static/", http.StripPrefix("/static", assetserve)) - http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { - w.Write(assets.MustBytes("index.html")) - }) // create the router and add middleware mux := router.New()