forked from UKSOURCE/cms.hailearning.edu.vn
add rebuild
This commit is contained in:
14
rebuild.sh
Executable file
14
rebuild.sh
Executable file
@@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
echo "🔄 Rebuild cms.hailearning.edu.vn..."
|
||||||
|
|
||||||
|
cd /opt/cms.hailearning.edu.vn
|
||||||
|
|
||||||
|
echo "📥 Pull latest code..."
|
||||||
|
git pull origin main --no-rebase
|
||||||
|
|
||||||
|
echo "♻️ Restart service..."
|
||||||
|
systemctl restart cms.hailearning.edu.vn.service
|
||||||
|
|
||||||
|
echo "✅ Deploy done"
|
||||||
Reference in New Issue
Block a user