No description
Find a file
2015-07-29 03:30:41 -07:00
fixtures add zipfile support 2015-07-18 20:20:02 -07:00
werc fix footer display 2015-07-18 21:36:05 -07:00
.hgignore initial commit 2014-03-25 00:58:46 -07:00
Dockerfile add Makefile and Dockerfile 2015-07-18 20:55:52 -07:00
main.go read zips from urls 2015-07-29 03:30:41 -07:00
Makefile add Makefile and Dockerfile 2015-07-18 20:55:52 -07:00
README.md add readme 2015-07-18 20:56:04 -07:00
store.go read zips from urls 2015-07-29 03:30:41 -07:00
store_test.go damnit goimports 2015-07-18 20:22:38 -07:00

GOWERC

clone of http://werc.cat-v.org/ in go.

features

  • virtual hosting
  • render markdown, html, plain text
  • serve files
  • read content from zip file

building

with go

go get -d bitbucket.org/mischief/gowerc
go install bitbucket.org/mischief/gowerc

in docker

check out the repo and run:

make

configuration

see the example configuration files in werc

using a zip file

zip a directory up and pass it to gowerc's -root option.

zip -r werc.zip werc

running

gowerc -l :80 -root werc/

with a zip file:

gowerc -l :80 -root werc.zip

in docker

docker run --rm --name gowerc -v $PWD:/opt mischief/gowerc -root /opt/werc.zip