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
このコミットが含まれているのは:
Ben Busby 2021-11-01 16:20:22 -06:00
コミット 829903fb9c
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 339B7B7EB5333D14
1個のファイルの変更4行の追加0行の削除

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