dnote/scripts/web/build-prod.sh
Sung Won Cho 2124e28a9f
Use go module (#303)
* Migrate to gomodule

* Fix install

* Update makefile
2019-11-11 15:28:47 +08:00

21 lines
447 B
Bash
Executable file

#!/usr/bin/env bash
# build.sh builds a production bundle
set -eux
dir=$(dirname "${BASH_SOURCE[0]}")
basePath="$dir/../.."
publicPath="$basePath/web/public"
compiledPath="$basePath/web/compiled"
bundleBaseUrl="/static"
assetBaseUrl="/static"
rootUrl=""
BUNDLE_BASE_URL="$bundleBaseUrl" \
ASSET_BASE_URL="$assetBaseUrl" \
ROOT_URL="$rootUrl" \
PUBLIC_PATH="$publicPath" \
COMPILED_PATH="$compiledPath" \
VERSION="$VERSION" \
"$dir/build.sh"