Reset build dir in script before run

Fixes #515 which isn't really a bug, but can occasionally cause
confusion when switching environments for the app
pull/534/head
Ben Busby 3 years ago
parent d1c9b7f803
commit 829903fb9c
No known key found for this signature in database
GPG Key ID: 339B7B7EB5333D14

4
run

@ -12,6 +12,10 @@ SUBDIR="${1:-app}"
export APP_ROOT="$SCRIPT_DIR/$SUBDIR"
export STATIC_FOLDER="$APP_ROOT/static"
# Clear out build directory
rm -f "$SCRIPT_DIR"/app/static/build/*.js
rm -f "$SCRIPT_DIR"/app/static/build/*.css
# Check for regular vs test run
if [[ "$SUBDIR" == "test" ]]; then
# Set up static files for testing

Loading…
Cancel
Save