From 829903fb9c5b11a4ba22fb20dbd85443358398f5 Mon Sep 17 00:00:00 2001 From: Ben Busby Date: Mon, 1 Nov 2021 16:20:22 -0600 Subject: [PATCH] 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 --- run | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/run b/run index 4ace594..9593201 100755 --- a/run +++ b/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