Commit Graph

14 Commits

Author SHA1 Message Date
Łukasz Mierzwa
dc1ce44cfb Merge Dockerfile commands
This will help avoid unnecessary image layers
2017-03-26 17:41:17 -07:00
Łukasz Mierzwa
ec08572f0a Use application/json for haml templates
application/javascript was set in commit 5e501844a7 which works, but causes browsers to throw lots of errors in the console, as they try to parse those scripts as javascript, json type still works and doesn't have same issue with browsers
2017-03-26 17:41:17 -07:00
Łukasz Mierzwa
f8420d4632 Use go-bindata-assetfs for static files
This allows unsee to be compiled into a single self-contained binary, without any need to external static files or templates
2017-03-26 17:41:17 -07:00
Łukasz Mierzwa
3027137a96 Cleanup make targets and update readme to match it
Refactor make targets to make it easier to follow, add missing PORT env variable to the readme.
2017-03-26 17:41:16 -07:00
Łukasz Mierzwa
8279565ed9 Merge pull request #6 from cloudflare/viper
Generate flag for each environment key
2017-03-26 17:15:49 -07:00
Łukasz Mierzwa
3de3a9c481 Generate flag for each environment key
This allows to set config keys via flags, in additions to current env variable only configuration. Flags are autogenerated from supported env keys.
2017-03-26 13:38:37 -07:00
Łukasz Mierzwa
8fe7f3b890 Merge pull request #4 from cloudflare/autoinstall-deps
Cleanup Makefile
2017-03-24 14:24:50 -07:00
Łukasz Mierzwa
6868df6087 Merge pull request #3 from cloudflare/go-1.8
Change template script type to application/javascript
2017-03-24 14:21:40 -07:00
Łukasz Mierzwa
9525cbcbe0 Cleanup Makefile
Rename 'make build' to 'make docker-image' so it's more obvious what it's doing
Initialize git submodules automatically when needed, so users don't need to do it manually
2017-03-23 22:56:17 -07:00
Łukasz Mierzwa
5e501844a7 Change template script type to application/javascript
Go 1.8 introduced checking of script type and templates are no longer loading, as the script type is not allowed by Go 1.8
https://github.com/golang/go/issues/18569 captures the details.
Change template script type to one of the allowed types, it doesn't matter for clientside-haml-js, it only needs to match the script id
2017-03-23 22:54:07 -07:00
Łukasz Mierzwa
27caf68ffa Merge pull request #2 from cloudflare/fix-dev-target
Fix missing quote in 'make dev' target
2017-03-23 19:59:05 -07:00
Łukasz Mierzwa
2d2eec0567 Fix missing quote in 'make dev' target 2017-03-23 19:57:54 -07:00
Łukasz Mierzwa
e239fd05fd Import code from internal repository (#1)
Import code from internal repository
2017-03-23 16:58:04 -07:00
Łukasz Mierzwa
42a6268135 Initial commit 2017-03-16 09:17:27 -07:00