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

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

[2025-08-26 19:18:44]    $ cd '/home/limexco1/tss115413.edu.bd' && git checkout tss115413.edu.bd
[2025-08-26 19:18:44] Already on 'tss115413.edu.bd'
D	.env.example

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

[2025-08-26 19:18:44]    $ cd '/home/limexco1/tss115413.edu.bd' && git reset --hard origin/tss115413.edu.bd
[2025-08-26 19:18:44] HEAD is now at e73e40e Merge branch 'dpgsc.edu.bd' of https://github.com/Syntax-Sonata/school-management into dpgsc.edu.bd

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

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

[2025-08-26 19:18:45]    $ cd '/home/limexco1/tss115413.edu.bd' && echo 'Latest commit: '$(git log -1 --oneline)
[2025-08-26 19:18:45] Latest commit: e73e40e Merge branch 'dpgsc.edu.bd' of https://github.com/Syntax-Sonata/school-management into dpgsc.edu.bd

[2025-08-26 19:18:45]    $ cd '/home/limexco1/tss115413.edu.bd' && echo 'Repository status: '$(git status --porcelain | wc -l)' uncommitted changes'
[2025-08-26 19:18:45] Repository status: 0 uncommitted changes

[2025-08-26 19:18:45] 📝 Recording last_deployed_sha: e73e40ef15b5364099a88e777d4dacd62b30070f
[2025-08-26 19:18:45] ✅ Deployment completed successfully!
