Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (22 sloc) 427 Bytes
#!/usr/bin/env bash
#
set -o nounset \
-o errexit \
-o verbose \
-o xtrace
# Set environment values if they exist as arguments
if [ $# -ne 0 ]; then
echo "===> Overriding env params with args ..."
for var in "$@"
do
export "$var"
done
fi
echo "===> ENV Variables ..."
env | sort
echo "===> User"
id
echo "===> Building ..."
yarn run build --production
echo "===> Running ... "
exec serve -s build
You can’t perform that action at this time.