From 063398d220f0dec1f4818dc2095c0705dd005d63 Mon Sep 17 00:00:00 2001 From: pacnpal <183241239+pacnpal@users.noreply.github.com> Date: Wed, 19 Feb 2025 09:59:39 -0500 Subject: [PATCH] Refactor development server startup instructions for clarity and conciseness --- .clinerules | 17 +++-------------- memory-bank/systemPatterns.md | 24 ++++++------------------ 2 files changed, 9 insertions(+), 32 deletions(-) diff --git a/.clinerules b/.clinerules index c8dd3507..a40799dc 100644 --- a/.clinerules +++ b/.clinerules @@ -1,24 +1,13 @@ # Project Startup Rules ## Development Server -IMPORTANT: Always follow these instructions exactly in this order when starting the development server: +IMPORTANT: Always follow these instructions exactly when starting the development server: -1. First, kill any existing process on port 8000: ```bash -lsof -ti :8000 | xargs kill -9 +lsof -ti :8000 | xargs kill -9; find . -type d -name "__pycache__" -exec rm -r {} +; uv run manage.py tailwind runserver ``` -2. Then, delete all __pycache__ directories: -```bash -find . -type d -name "__pycache__" -exec rm -r {} + -``` - -3. Finally, run the Django development server with Tailwind using UV: -```bash -uv run manage.py tailwind runserver -``` - -Note: These steps must be followed in exactly this order every time you start the development server to ensure consistent behavior. +Note: These steps must be executed in this exact order as a single command to ensure consistent behavior. ## Package Management IMPORTANT: When a Python package is needed, only use UV to add it: diff --git a/memory-bank/systemPatterns.md b/memory-bank/systemPatterns.md index 69722df2..6e023f1f 100644 --- a/memory-bank/systemPatterns.md +++ b/memory-bank/systemPatterns.md @@ -169,25 +169,13 @@ uv add Do not attempt to install packages using any other method (pip, poetry, etc.). ### Development Server Management -1. Server Startup Process - IMPORTANT: Always follow these steps exactly in this order when starting the development server: +Server Startup Process +IMPORTANT: Always execute the following command exactly as shown to start the development server: +```bash +lsof -ti :8000 | xargs kill -9; find . -type d -name "__pycache__" -exec rm -r {} +; uv run manage.py tailwind runserver +``` - 1. First, kill any existing process on port 8000: - ```bash - lsof -ti :8000 | xargs kill -9 - ``` - - 2. Then, delete all __pycache__ directories: - ```bash - find . -type d -name "__pycache__" -exec rm -r {} + - ``` - - 3. Finally, run the Django development server with Tailwind using UV: - ```bash - uv run manage.py tailwind runserver - ``` - - Note: These steps must be followed in exactly this order every time you start the development server to ensure consistent behavior. +Note: These steps must be executed in this exact order as a single command to ensure consistent behavior. ### Feature Development 1. Planning