fix: run_dev.bat works from any launch directory (cd to its own folder first)
The bat assumed it was started from the repo root — python couldn't find manage.py when the Claude preview runner (or any other launcher) started it from elsewhere. cd /d "%~dp0" pins it to the script's own directory. .claude/launch.json (gitignored) now also passes the bat's absolute path so cmd finds it regardless of working directory. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
94b6ec08e1
commit
2d3cc43984
@ -1,5 +1,9 @@
|
|||||||
@echo off
|
@echo off
|
||||||
REM === Local dev launcher ===
|
REM === Local dev launcher ===
|
||||||
|
REM cd to this script's own folder first (%~dp0 = the .bat's directory) so
|
||||||
|
REM "python manage.py ..." works no matter where the launcher was started
|
||||||
|
REM from (the Claude preview runner starts cmd outside the project root).
|
||||||
|
cd /d "%~dp0"
|
||||||
REM USE_SQLITE=true -> use SQLite, skip MySQL requirement, relax prod-only checks
|
REM USE_SQLITE=true -> use SQLite, skip MySQL requirement, relax prod-only checks
|
||||||
REM DJANGO_DEBUG=true -> make Django's dev server auto-serve /static/ files so
|
REM DJANGO_DEBUG=true -> make Django's dev server auto-serve /static/ files so
|
||||||
REM CSS/JS/images load without needing collectstatic (prod
|
REM CSS/JS/images load without needing collectstatic (prod
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user