-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun.bat
More file actions
40 lines (34 loc) · 1.04 KB
/
run.bat
File metadata and controls
40 lines (34 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
@echo off
REM Historical Map Geocoder - Windows Startup Script
echo =====================================
echo Historical Map Geocoder
echo =====================================
echo.
REM Check if uv is installed
where uv >nul 2>nul
if %ERRORLEVEL% NEQ 0 (
echo uv is not installed. Installing uv...
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
echo Please restart your command prompt and run this script again.
pause
exit /b 1
)
REM Sync dependencies (uv will create venv automatically)
echo Installing dependencies with uv...
uv sync
REM Create necessary directories
if not exist "data\" mkdir data
if not exist "static\maps\" mkdir static\maps
echo.
echo =====================================
echo Starting server...
echo =====================================
echo.
echo Place your map images in: static\maps\
echo Open browser to: http://localhost:5000
echo.
echo Press Ctrl+C to stop the server
echo =====================================
echo.
REM Run the application with uv
uv run python app.py