fix(justfile): escape Jinja2 variables to prevent premature evaluation

This commit is contained in:
sankalp committed 2025-11-08 21:43:20 +05:45
1 parent 105cd75595
commit eb59e0c487
1 file changed
+6 -6
+6 -6
View File
@@ -12,7 +12,7 @@ dev:
# Run development server with custom host and port
dev-server HOST="0.0.0.0" PORT="8000":
uv run python manage.py runserver {{HOST}}:{{PORT}}
uv run python manage.py runserver {{ '{{' }}HOST{{ '}}' }}:{{ '{{' }}PORT{{ '}}' }}
# Create migrations for all apps
makemigrations:
@@ -20,7 +20,7 @@ makemigrations:
# Create migrations for specific app
makemigrations-app APP:
uv run python manage.py makemigrations {{APP}}
uv run python manage.py makemigrations {{ '{{' }}APP{{ '}}' }}
# Run all migrations
migrate:
@@ -112,7 +112,7 @@ server:
# Start production server with gunicorn workers
server-prod WORKERS="4":
uv run gunicorn {{ project_name }}.wsgi:application --bind 0.0.0.0:8000 --workers {{WORKERS}}
uv run gunicorn {{ project_name }}.wsgi:application --bind 0.0.0.0:8000 --workers {{ '{{' }}WORKERS{{ '}}' }}
# Start production server with gunicorn and reload on file changes
server-watch:
@@ -143,12 +143,12 @@ setup-complete:
# Install a new package
install PACKAGE:
uv add {{PACKAGE}}
uv add {{ '{{' }}PACKAGE{{ '}}' }}
# Install a dev package
install-dev PACKAGE:
uv add --dev {{PACKAGE}}
uv add --dev {{ '{{' }}PACKAGE{{ '}}' }}
# Remove a package
remove PACKAGE:
uv remove {{PACKAGE}}
uv remove {{ '{{' }}PACKAGE{{ '}}' }}