Merge branch 'master' into delrepo

This commit is contained in:
Ulrich Schreiner 2015-02-06 10:30:10 +01:00
commit 5f9887a49c
4 changed files with 6 additions and 9 deletions

5
.gitignore vendored
View file

@ -6,8 +6,9 @@ drone.sublime-workspace
*~
~*
*.sqlite
drone.deb
drone.rpm
*.deb
*.deb.*
*.rpm
*.out
*.rice-box.go

View file

@ -69,6 +69,7 @@ deb:
--vendor "drone.io" -a amd64 \
--config-files /etc/drone/drone.toml \
packaging/root/=/
cp packaging/output/drone.deb packaging/output/drone.deb.$(SHA)
rpm:
fpm -s dir -t rpm -n drone -v $(VERSION) -p packaging/output/drone.rpm \

View file

@ -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)
}

View file

@ -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()