Former-commit-id: 7ad77c6205f355a8cf9624afe3b9242b36419346 [formerly caab084f776de92bd6d77db51d4c2d037f0d5d30] [formerly cae5d238cc366a8ec80601a61fa3f32b79f110c6 [formerly d81c6933cd]]
Former-commit-id: 039e2f615c09c612cfb5c1e72f4c118aaa53d60d [formerly 5439f812cf3de2ae692fb7b96a75ea01d402bbec]
Former-commit-id: 49ac3393c5ee50f1e23907695e49e6f11ccfe75a
pull/726/head
Henrique Dias 2017-03-25 19:57:14 +00:00
parent 48ae058aab
commit 978e37b895
5 changed files with 15 additions and 13 deletions

View File

@ -1 +1 @@
ae9ad20ebd3ed2db145378773342920fe19a66d3
75755022adfcafcbf6d563ce4af52fc022e6f163

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

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
// when directory path is requested instead of a specific file. Based on browse
// middleware.

View File

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

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.
Now you only need to build or install Caddy and you're good to go.
**Pre-commit Git Hook**
```
go generate
git add -A
```