diff --git a/Frontend-Learner/.gitignore b/Frontend-Learner/.gitignore index 5b126026..1cc66f12 100644 --- a/Frontend-Learner/.gitignore +++ b/Frontend-Learner/.gitignore @@ -23,3 +23,6 @@ logs .env .env.* !.env.example +load-image.sh +learner-ui.tar +deploy.ps1 \ No newline at end of file diff --git a/Frontend-Learner/deploy.ps1 b/Frontend-Learner/deploy.ps1 deleted file mode 100644 index 72b5dae8..00000000 --- a/Frontend-Learner/deploy.ps1 +++ /dev/null @@ -1,20 +0,0 @@ -# --- ตั้งค่าคอนฟิก (แก้ไขตามจริง) --- -$SERVER_IP = "192.168.1.137" # ใส่ IP ของเซิร์ฟเวอร์ -$SERVER_USER = "root" -$SERVER_PATH = "/root/e-learning/Frontend-Learner" -$IMAGE_NAME = "frontend-learner-learner-ui:latest" -$FILE_NAME = "learner-ui.tar" - -Write-Host "🚀 1. กำลัง Build Docker Image (ในเครื่อง Windows)..." -ForegroundColor Cyan -docker build -t $IMAGE_NAME . - -Write-Host "📦 2. กำลังเซฟ Image เป็นไฟล์ $FILE_NAME..." -ForegroundColor Cyan -docker save $IMAGE_NAME -o $FILE_NAME - -Write-Host "📤 3. กำลังส่งไฟล์ไปที่ Server ($SERVER_IP)..." -ForegroundColor Cyan -# ตรวจสอบว่ามี ssh/scp หรือยัง (ปกติมีใน Windows 10+) -scp $FILE_NAME "$($SERVER_USER)@$($SERVER_IP):$SERVER_PATH/" -scp docker-compose.yml "$($SERVER_USER)@$($SERVER_IP):$SERVER_PATH/" - -Write-Host "✅ ส่งไฟล์เสร็จเรียบร้อย!" -ForegroundColor Green -Write-Host "ถัดไป: ไปที่หน้าจอ Server แล้วรันสคริปต์ load-image.sh ครับ" -ForegroundColor Yellow