Initial project upload

This commit is contained in:
Mohamed Mathar Irfan
2026-07-28 17:57:02 +05:30
commit ed6610d5d8
23919 changed files with 3003316 additions and 0 deletions

31
deploy/deploy.sh Normal file
View File

@@ -0,0 +1,31 @@
#!/usr/bin/env bash
# VerifyPack deploy — pull latest, install deps, rebuild frontend, restart services.
# Run on the EC2 box (or invoked by GitHub Actions over SSH).
set -euo pipefail
APP_DIR="/mnt/data/verifypack"
cd "$APP_DIR"
echo "==> git pull"
git fetch --all
git reset --hard origin/main
echo "==> backend deps"
cd "$APP_DIR/backend"
source .venv/bin/activate
pip install -r requirements.txt >/dev/null
deactivate
echo "==> frontend build"
cd "$APP_DIR/frontend"
npm ci
npm run build
echo "==> restart services"
sudo systemctl restart verifypack-backend
sudo systemctl restart verifypack-frontend
echo "==> health check"
sleep 3
curl -fsS http://127.0.0.1:8000/health && echo
echo "Deploy complete."