#!/usr/bin/env bash # # compress static assets set -euo pipefail cd ui/react-app cp embed.go.tmpl embed.go GZIP_OPTS="-fkn" # gzip option '-k' may not always exist in the latest gzip available on different distros. if ! gzip -k -h &>/dev/null; then GZIP_OPTS="-fn"; fi dist="dist" if ! [[ -d "${dist}" ]]; then mkdir -p ${dist} echo "
This is the default index, looks like you forget to generate the react app before generating the golang endpoint.