Files
dealplustech/FINAL_DEPLOYMENT_GUIDE.md
Kunthawat Greethong 443c3377e2 refactor: Move Astro to root, use PORT env (default 80), allow all hosts
- Move Astro files from dealplustech-astro/ to project root
- Update Dockerfile: PORT environment variable (default 80)
- Add vite.config.ts with allowedHosts: true
- Matches nixpacks behavior for Easypanel deployment
- No hardcoded ports or domains
2026-03-03 11:40:50 +07:00

165 lines
3.2 KiB
Markdown

# 🚀 Final Deployment Guide - Deal Plus Tech Astro
## ✅ What's Ready
### 1. Docker Image
- ✅ Built locally: `dealplustech-astro:local`
- ✅ Size: ~564MB
- ✅ Ready to push to registry
### 2. Easypanel Integration
- ✅ API token configured
- ✅ Project identified: `customerwebsite`
- ✅ Deployment script ready
### 3. Registry Options
**Option A: Easypanel Registry** (If available)
```bash
URL: 110.164.146.46:3001
Status: ⚠️ Port 3001 not accessible
```
**Option B: Docker Hub** (Recommended fallback)
```bash
URL: hub.docker.com
Status: ✅ Available
```
**Option C: Direct Server Load** (If SSH access)
```bash
Server: 110.164.146.46
Status: ⚠️ Requires SSH credentials
```
---
## 📋 Recommended Deployment Path
### Step 1: Push to Docker Hub (5 minutes)
```bash
# 1. Login to Docker Hub
docker login
# 2. Tag image
docker tag dealplustech-astro:local yourusername/dealplustech-astro:latest
# 3. Push
docker push yourusername/dealplustech-astro:latest
```
### Step 2: Create Service in Easypanel (2 minutes)
```
1. Open: http://110.164.146.46:3000
2. Project: customerwebsite
3. New Service → Docker image
4. Image: yourusername/dealplustech-astro:latest
5. Port: 4321
6. Deploy
7. Copy Service ID
```
### Step 3: Register Service ID
```bash
cd dealplustech-astro
./skills/easypanel-deploy/deploy.sh register svc_xxx...
```
### Step 4: Verify
```bash
./skills/easypanel-deploy/deploy.sh status
```
---
## 🔄 Future Updates
Once registered:
```bash
# Make changes
git pull
# Update (automatically rebuilds and pushes)
./skills/easypanel-deploy/deploy.sh update
# Redeploy in Easypanel dashboard
```
---
## 🎯 Quick Commands
```bash
# Deploy (builds + instructions)
./skills/easypanel-deploy/deploy.sh deploy
# Register service
./skills/easypanel-deploy/deploy.sh register SERVICE_ID
# Update (rebuild + push)
./skills/easypanel-deploy/deploy.sh update
# Check status
./skills/easypanel-deploy/deploy.sh status
# List projects
./skills/easypanel-deploy/deploy.sh list
```
---
## 📁 Files Created
```
dealplustech-astro/
├── skills/easypanel-deploy/
│ ├── deploy.sh ✅ v3.2 Smart deployment
│ ├── SKILL_v2.md ✅ Full documentation
│ ├── README.md ✅ Quick start
│ └── AUTOMATIC_DEPLOYMENT.md ✅ Automation details
├── DEPLOYMENT_OPTIONS.md ✅ Registry options
├── FINAL_DEPLOYMENT_GUIDE.md ✅ This file
└── easypanel.config.json ✅ Configuration
~/.easypanel/
├── credentials ✅ API token
└── state.json ✅ Service IDs
```
---
## ✅ Checklist
- [x] Docker image built
- [x] Easypanel token configured
- [x] Project identified (customerwebsite)
- [ ] Push to Docker Hub
- [ ] Create service in Easypanel
- [ ] Register service ID
- [ ] Verify deployment
---
## 🎯 Next Action
**Push to Docker Hub:**
```bash
docker login
docker tag dealplustech-astro:local yourusername/dealplustech-astro:latest
docker push yourusername/dealplustech-astro:latest
```
**Then create service in Easypanel!**
---
**Status:** Ready for Docker Hub push
**Estimated Time:** 10 minutes
**Difficulty:** Easy