Merge branch 'master' into delrepo
This commit is contained in:
commit
5f9887a49c
4 changed files with 6 additions and 9 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
@ -6,8 +6,9 @@ drone.sublime-workspace
|
|||
*~
|
||||
~*
|
||||
*.sqlite
|
||||
drone.deb
|
||||
drone.rpm
|
||||
*.deb
|
||||
*.deb.*
|
||||
*.rpm
|
||||
*.out
|
||||
*.rice-box.go
|
||||
|
||||
|
|
1
Makefile
1
Makefile
|
@ -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 \
|
||||
|
|
|
@ -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…
Reference in a new issue