IntegraChat / deploy.bat
nothingworry's picture
Add deployment scripts for Hugging Face Spaces
97637c6
@echo off
REM Quick deployment script for Hugging Face Spaces (Windows)
echo.
echo ========================================
echo Deploying IntegraChat to HF Spaces
echo ========================================
echo.
REM Check if git is initialized
if not exist ".git" (
echo Initializing git repository...
git init
)
REM Get space details
set /p HF_USERNAME="Enter your Hugging Face username: "
set /p SPACE_NAME="Enter your Space name (default: integrachat): "
if "%SPACE_NAME%"=="" set SPACE_NAME=integrachat
set HF_REMOTE=https://huggingface.co/spaces/%HF_USERNAME%/%SPACE_NAME%
echo.
echo Adding files to git...
git add Dockerfile .dockerignore README_HF_SPACES.md requirements.txt app.py env.example LICENSE README.md assets/ backend/ scripts/ 2>nul
echo.
echo Committing changes...
git commit -m "Deploy IntegraChat to Hugging Face Spaces" 2>nul
if errorlevel 1 (
echo Warning: No changes to commit or commit failed
)
echo.
echo Setting up remote...
git remote remove hf 2>nul
git remote add hf %HF_REMOTE%
echo.
echo Pushing to Hugging Face...
echo Remote: %HF_REMOTE%
echo.
pause
git push hf main 2>nul || git push hf master
echo.
echo ========================================
echo Deployment initiated!
echo ========================================
echo.
echo Next steps:
echo 1. Go to: %HF_REMOTE%
echo 2. Click 'Settings' tab
echo 3. Add environment variables in 'Repository secrets'
echo 4. Wait for build to complete (5-10 minutes)
echo 5. Check 'Logs' tab for build progress
echo.
pause