mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 07:51:09 -05:00
Refactor development server startup instructions for clarity and conciseness
This commit is contained in:
17
.clinerules
17
.clinerules
@@ -1,24 +1,13 @@
|
|||||||
# Project Startup Rules
|
# Project Startup Rules
|
||||||
|
|
||||||
## Development Server
|
## 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
|
```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:
|
Note: These steps must be executed in this exact order as a single command to ensure consistent behavior.
|
||||||
```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.
|
|
||||||
|
|
||||||
## Package Management
|
## Package Management
|
||||||
IMPORTANT: When a Python package is needed, only use UV to add it:
|
IMPORTANT: When a Python package is needed, only use UV to add it:
|
||||||
|
|||||||
@@ -169,25 +169,13 @@ uv add <package>
|
|||||||
Do not attempt to install packages using any other method (pip, poetry, etc.).
|
Do not attempt to install packages using any other method (pip, poetry, etc.).
|
||||||
|
|
||||||
### Development Server Management
|
### Development Server Management
|
||||||
1. Server Startup Process
|
Server Startup Process
|
||||||
IMPORTANT: Always follow these steps exactly in this order when starting the development server:
|
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:
|
Note: These steps must be executed in this exact order as a single command to ensure consistent behavior.
|
||||||
```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.
|
|
||||||
|
|
||||||
### Feature Development
|
### Feature Development
|
||||||
1. Planning
|
1. Planning
|
||||||
|
|||||||
Reference in New Issue
Block a user