chore: Add .gitignore to exclude build outputs, node modules, and local configurations.
This commit is contained in:
parent
bc7341c004
commit
27ce0f68b0
2 changed files with 3 additions and 20 deletions
3
Frontend-Learner/.gitignore
vendored
3
Frontend-Learner/.gitignore
vendored
|
|
@ -23,3 +23,6 @@ logs
|
|||
.env
|
||||
.env.*
|
||||
!.env.example
|
||||
load-image.sh
|
||||
learner-ui.tar
|
||||
deploy.ps1
|
||||
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue