[2025-08-26 18:11:37] 🚀 Starting deployment for Syntax-Sonata/school-management on branch mokterpursgs.edu.bd
[2025-08-26 18:11:37] 🔑 Connecting to iris-us-cp3.hostever.com:1004...
[2025-08-26 18:11:37] 🔐 Using password authentication
[2025-08-26 18:11:37] 🔗 Connected to server successfully
[2025-08-26 18:11:37] 🔧 Preparing deployment directory...
[2025-08-26 18:11:37]    $ mkdir -p /home/limexco1/mokterpursgs.edu.bd
[2025-08-26 18:11:37]    $ pwd
[2025-08-26 18:11:37] /home/limexco1

[2025-08-26 18:11:37] 🔑 Setting up GitHub SSH key...
[2025-08-26 18:11:37] ⚠️  No SSH key found for GitHub access
[2025-08-26 18:11:37] ⚠️  Will use token-based authentication
[2025-08-26 18:11:37] 🌐 Configuring Git for HTTPS access
[2025-08-26 18:11:37]    $ git config --global --add safe.directory "*"
[2025-08-26 18:11:37] 🔄 Handling repository operations...
[2025-08-26 18:11:37] 🔍 Checking repository status at: /home/limexco1/mokterpursgs.edu.bd
[2025-08-26 18:11:37]    $ mkdir -p /home/limexco1/mokterpursgs.edu.bd
[2025-08-26 18:11:37] 📁 Repository check result: 'true'
[2025-08-26 18:11:37] 📁 Found existing git repository - verifying...
[2025-08-26 18:11:37] 🔗 Current remote: https://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@github.com/Syntax-Sonata/school-management.git
[2025-08-26 18:11:37] ✅ Correct repository detected, updating...
[2025-08-26 18:11:37] 🔄 Updating existing repository (safe, no file deletions)...
[2025-08-26 18:11:37] 🔗 Ensuring origin is set to: https://***TOKEN***@github.com/Syntax-Sonata/school-management.git
[2025-08-26 18:11:37]    $ cd '/home/limexco1/mokterpursgs.edu.bd' && git remote set-url origin 'https://***TOKEN***@github.com/Syntax-Sonata/school-management.git'
[2025-08-26 18:11:37]    $ cd '/home/limexco1/mokterpursgs.edu.bd' && git fetch origin --prune
[2025-08-26 18:11:38] From https://github.com/Syntax-Sonata/school-management
   e73e40e..cc86f80  mokterpursgs.edu.bd -> origin/mokterpursgs.edu.bd

[2025-08-26 18:11:38]    $ cd '/home/limexco1/mokterpursgs.edu.bd' && git checkout mokterpursgs.edu.bd
[2025-08-26 18:11:38] Already on 'mokterpursgs.edu.bd'
M	app/Modules/Certificate/resources/views/admitCard/admitCard.blade.php
M	resources/views/frontend/admitcard/admit-card-pdf.blade.php
Your branch is behind 'origin/mokterpursgs.edu.bd' by 1 commit, and can be fast-forwarded.
  (use "git pull" to update your local branch)

[2025-08-26 18:11:38]    $ cd '/home/limexco1/mokterpursgs.edu.bd' && git stash push -m 'auto-stash before deploy' || true
[2025-08-26 18:11:38] Saved working directory and index state On mokterpursgs.edu.bd: auto-stash before deploy

[2025-08-26 18:11:38]    $ cd '/home/limexco1/mokterpursgs.edu.bd' && git reset --hard origin/mokterpursgs.edu.bd
[2025-08-26 18:11:38] HEAD is now at cc86f80 merge

[2025-08-26 18:11:38] ✅ Repository updated successfully (untracked files preserved)
[2025-08-26 18:11:38] 🔍 Verifying repository state...
[2025-08-26 18:11:38]    $ cd '/home/limexco1/mokterpursgs.edu.bd' && echo 'Current directory: '$(pwd)
[2025-08-26 18:11:39] Current directory: /home/limexco1/mokterpursgs.edu.bd

[2025-08-26 18:11:39]    $ cd '/home/limexco1/mokterpursgs.edu.bd' && echo 'Current branch: '$(git rev-parse --abbrev-ref HEAD)
[2025-08-26 18:11:39] Current branch: mokterpursgs.edu.bd

[2025-08-26 18:11:39]    $ cd '/home/limexco1/mokterpursgs.edu.bd' && echo 'Latest commit: '$(git log -1 --oneline)
[2025-08-26 18:11:39] Latest commit: cc86f80 merge

[2025-08-26 18:11:39]    $ cd '/home/limexco1/mokterpursgs.edu.bd' && echo 'Repository status: '$(git status --porcelain | wc -l)' uncommitted changes'
[2025-08-26 18:11:39] Repository status: 5 uncommitted changes

[2025-08-26 18:11:39] 📝 Recording last_deployed_sha: cc86f80a60b5c3efcabd39bdd5b9d38e88e78e79
[2025-08-26 18:11:39] ✅ Deployment completed successfully!
