filebrowser/build.sh

16 lines
288 B
Bash
Raw Normal View History

2017-07-10 14:19:53 +00:00
#!/bin/bash
2017-07-28 10:21:55 +00:00
# Install rice tool if not present
if ! [ -x "$(command -v rice)" ]; then
go get github.com/GeertJohan/go.rice/rice
fi
# Clean the dist folder and build the assets
2017-07-10 14:19:53 +00:00
rm -rf assets/dist
npm run build
2017-07-28 10:21:55 +00:00
# Embed the assets using rice
2017-07-10 14:19:53 +00:00
rice embed-go
2017-07-18 08:06:19 +00:00
cd ./caddy/hugo
rice embed-go