update build.sh

This commit is contained in:
Henrique Dias 2017-07-28 11:21:55 +01:00
parent 05a6ebe805
commit 81b1e8d430
No known key found for this signature in database
GPG Key ID: 936F5EB68D786730
1 changed files with 9 additions and 0 deletions

View File

@ -1,6 +1,15 @@
#!/bin/bash
# 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
rm -rf assets/dist
npm run build
# Embed the assets using rice
rice embed-go
cd ./caddy/hugo
rice embed-go