@echo off
REM If DEPLOY_CLEAN hangs on SSH - run these 4 commands manually
cd /d "%~dp0\.."
set SERVER=root@46.4.230.217
set TEMP=%TEMP%\ins-deploy

echo.
echo === Manual deploy (copy-paste each line) ===
echo.
echo 1) Create zip:
echo    python tools\make_deploy_zip.py instagram-listener %TEMP%\ins-deploy\listener.zip
echo.
echo 2) Upload:
echo    ssh %SERVER% "mkdir -p /tmp/ins-deploy"
echo    scp %TEMP%\ins-deploy\listener.zip %SERVER%:/tmp/ins-deploy/
echo    scp instagram-listener\data\session.json %SERVER%:/tmp/ins-deploy/session_from_pc.json
echo    scp tools\remote_install_clean.sh %SERVER%:/tmp/ins-deploy/
echo.
echo 3) Install:
echo    ssh %SERVER% "bash /tmp/ins-deploy/remote_install_clean.sh"
echo.
pause
