Files
Button/sshDeploy/run.bat
T
2026-07-28 15:33:07 +03:00

28 lines
580 B
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
@echo off
cd /d "%~dp0"
if not exist config.json (
echo [error] Не найден config.json. Скопируйте config.example.json в config.json и заполните его.
pause
exit /b 1
)
where python >nul 2>&1
if %ERRORLEVEL%==0 (
python mass_deploy.py config.json
goto :done
)
where py >nul 2>&1
if %ERRORLEVEL%==0 (
py -3 mass_deploy.py config.json
goto :done
)
echo [error] Python 3 не найден. Установите с https://www.python.org/downloads/
echo и отметьте "Add python.exe to PATH".
pause
exit /b 1
:done
pause