diff --git a/run b/run index b2eedbd..2ac71a4 100755 --- a/run +++ b/run @@ -12,12 +12,13 @@ SUBDIR="${1:-app}" export APP_ROOT="$SCRIPT_DIR/$SUBDIR" export STATIC_FOLDER="$APP_ROOT/static" -mkdir -p "$STATIC_FOLDER" - # Check for regular vs test run if [[ "$SUBDIR" == "test" ]]; then + # Set up static files for testing + ln -s "$SCRIPT_DIR/app/static" "$STATIC_FOLDER" pytest -sv else + mkdir -p "$STATIC_FOLDER" python3 -um app \ --host "${ADDRESS:-0.0.0.0}" \ --port "${PORT:-"${EXPOSE_PORT:-5000}"}"