backstory/frontend/build.sh
2025-04-10 14:48:26 -07:00

10 lines
245 B
Bash
Executable File

#!/bin/bash
fail() {
echo "$*" >&2
exit 1
}
npm run build || fail "Unable to build frontend"
# Copy the built files to the deployed directory
rsync -avprl --delete build/ deployed/ || fail "Unable to copy built files to deployed directory"