mirror of
https://github.com/benbusby/whoogle-search.git
synced 2025-07-09 03:04:13 -04:00
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
This commit is contained in:
parent
d1c9b7f803
commit
829903fb9c
4
run
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…
x
Reference in New Issue
Block a user