update
parent
3e9ee34e0b
commit
d81c6933cd
1484
assets/binary.go
1484
assets/binary.go
File diff suppressed because it is too large
Load Diff
10
binary.sh
10
binary.sh
|
@ -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
|
|
@ -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
|
||||
// when directory path is requested instead of a specific file. Based on browse
|
||||
// middleware.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
package page
|
||||
|
||||
var GIT_COMMIT_HASH = "0a2b945"
|
||||
var GIT_COMMIT_HASH = "3e9ee34"
|
||||
var CIRCLE_BUILD_NUM = ""
|
||||
var GENERATED int64 = 1490471489112984900
|
||||
var GENERATED int64 = 1490471837692753800
|
||||
|
|
|
@ -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.
|
||||
|
||||
Now you only need to build or install Caddy and you're good to go.
|
||||
|
||||
**Pre-commit Git Hook**
|
||||
|
||||
```
|
||||
go generate
|
||||
git add -A
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue