mirror of
https://github.com/harness/drone.git
synced 2025-05-31 11:43:15 +00:00
fixed go.rice issue
This commit is contained in:
parent
452beba83d
commit
271974e98f
@ -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)
|
||||
}
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user