remove concept of prod and dev assets

instead always do the "prod" thing, but use entr for restarting the
server for all assets
This commit is contained in:
sentriz
2019-07-08 13:36:26 +01:00
parent b44b0d8720
commit ba2f835c22
11 changed files with 59 additions and 106 deletions

View File

@@ -1,17 +1,8 @@
#!/bin/sh
source ./_build_vars
find server/assets/ \
-type f \
-exec go run \
cmd/gonicembed/main.go \
-out-path server/assets_bytes.go \
-tag-list embed \
-package-name server \
-assets-var-name AssetBytes \
-asset-path-prefix server/assets/ \
{} +
./_do_gen_assets
go build \
-o gonic \
-tags "$(tr '\n' ' ' < _build_tags) embed" \
-tags "$(tr '\n' ' ' < _build_tags)" \
cmd/gonic/main.go