Refactor development server startup instructions for clarity and conciseness

This commit is contained in:
pacnpal
2025-02-19 09:59:39 -05:00
parent 20ae4862e4
commit 063398d220
2 changed files with 9 additions and 32 deletions

View File

@@ -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:

View File

@@ -169,25 +169,13 @@ uv add <package>
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:
1. First, kill any existing process on port 8000:
Server Startup Process
IMPORTANT: Always execute the following command exactly as shown to start the development server:
```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.
### Feature Development
1. Planning