This commit is contained in:
Henrique Dias committed 2017-03-25 19:57:14 +00:00
1 parent 3e9ee34e0b
commit d81c6933cd
5 files changed
+756 -754

No files matched your search

+742 -742
View File
File diff suppressed because it is too large. Load diff
-10
View File
@@ -1,10 +0,0 @@
#!/bin/sh
go get github.com/jteeuwen/go-bindata/go-bindata
go get github.com/bountylabs/gitversion
go-bindata -pkg assets -prefix "_embed" -o assets/binary.go _embed/templates/... _embed/public/js/... _embed/public/css/... _embed/public/ace/src-min/...
gitversion -s -o page/version.go -p page
gofmt -w page/version.go
gofmt -w assets/binary.go
git add -A
+5
View File
@@ -1,3 +1,8 @@
//go:generate go get github.com/jteeuwen/go-bindata/go-bindata
//go:generate go get github.com/bountylabs/gitversion
//go:generate go-bindata -pkg assets -prefix "_embed" -o assets/binary.go _embed/templates/... _embed/public/js/... _embed/public/css/... _embed/public/ace/src-min/...
//go:generate gitversion -s -o page/version.go -p page
// Package filemanager provides middleware for managing files in a directory // Package filemanager provides middleware for managing files in a directory
// when directory path is requested instead of a specific file. Based on browse // when directory path is requested instead of a specific file. Based on browse
// middleware. // middleware.
+2 -2
View File
@@ -1,5 +1,5 @@
package page package page
var GIT_COMMIT_HASH = "0a2b945" var GIT_COMMIT_HASH = "3e9ee34"
var CIRCLE_BUILD_NUM = "" var CIRCLE_BUILD_NUM = ""
var GENERATED int64 = 1490471489112984900 var GENERATED int64 = 1490471837692753800
+7
View File
@@ -151,3 +151,10 @@ If you want to build Caddy from source with this plugin, you should take the fol
6. Add the line `_ github.com/hacdias/caddy-filemanager` to the imports section. 6. Add the line `_ github.com/hacdias/caddy-filemanager` to the imports section.
Now you only need to build or install Caddy and you're good to go. Now you only need to build or install Caddy and you're good to go.
**Pre-commit Git Hook**
```
go generate
git add -A
```