Files
dealplustech/FINAL_DEPLOYMENT_GUIDE.md
Kunthawat Greethong b2960ca105 fix: Use only dist folder (contains public assets)
- Astro build automatically copies public/ to dist/
- Remove separate public folder copy (not needed)
- Use PORT environment variable (default 80)
- Fix favicon 404 by using correct dist structure
2026-03-03 13:44:24 +07:00

3.2 KiB

🚀 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)

URL: 110.164.146.46:3001
Status: ⚠️ Port 3001 not accessible

Option B: Docker Hub (Recommended fallback)

URL: hub.docker.com
Status: ✅ Available

Option C: Direct Server Load (If SSH access)

Server: 110.164.146.46
Status: ⚠️ Requires SSH credentials

Step 1: Push to Docker Hub (5 minutes)

# 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

cd dealplustech-astro
./skills/easypanel-deploy/deploy.sh register svc_xxx...

Step 4: Verify

./skills/easypanel-deploy/deploy.sh status

🔄 Future Updates

Once registered:

# Make changes
git pull

# Update (automatically rebuilds and pushes)
./skills/easypanel-deploy/deploy.sh update

# Redeploy in Easypanel dashboard

🎯 Quick Commands

# 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

  • Docker image built
  • Easypanel token configured
  • Project identified (customerwebsite)
  • Push to Docker Hub
  • Create service in Easypanel
  • Register service ID
  • Verify deployment

🎯 Next Action

Push to Docker Hub:

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