3.3 KiB
3.3 KiB
Easypanel Deployment Guide - MoreminiMore Website
Quick Deploy
Option 1: Run Deploy Script
cd moreminimore-redesign
./deploy.sh
Option 2: Manual Deployment
Step-by-Step Manual Deployment
Step 1: Login to Easypanel
Navigate to your Easypanel instance and login.
Step 2: Create Project (if needed)
- Click "New Project"
- Enter project name:
moreminimore-website - Click "Create Project"
Step 3: Add Service
- Click "New Service" in your project
- Select "Git Repository"
Step 4: Configure Git Repository
Fill in the following:
| Field | Value |
|---|---|
| Name | moreminimore-website |
| Repository URL | https://git.moreminimore.com/kunthawat/moreminimore-website.git |
| Branch | main |
| Username | (your Gitea username) |
| Password/Token | (your Gitea password or token) |
Step 5: Configure Docker
| Field | Value |
|---|---|
| Dockerfile | Dockerfile (default) |
| Port | 4321 |
| Command | npx astro preview --host 0.0.0.0 --port 4321 |
Step 6: Enable Auto-Deploy
- Go to Settings → Deploy
- Find "Auto Deploy" section
- Toggle to Enabled
- Select branch:
main - Click "Save"
Step 7: Deploy
- Go to Deployments tab
- Click "Deploy Now" (or wait for auto-deploy on next push)
- Watch the build logs
- Wait for deployment to complete (~2-3 minutes)
Step 8: Verify
- Click the service URL (provided by Easypanel)
- Verify homepage loads
- Test navigation and all pages
Environment Variables
No environment variables required (static site).
SSL/HTTPS
Easypanel automatically provisions SSL certificates. Your site will be available at:
https://your-service.your-project.easypanel.app
Custom Domain (Optional)
To use custom domain:
- Go to Settings → Domains
- Add your domain:
www.moreminimore.com - Update DNS records as instructed
- Wait for SSL certificate (5-10 minutes)
Troubleshooting
Build Fails
- Check Deployments → Build Logs
- Common issues:
- Missing dependencies → Check
package.json - Build errors → Check TypeScript/Astro errors
- Docker issues → Check
Dockerfile
- Missing dependencies → Check
Site Not Loading
- Check if container is running (Easypanel dashboard)
- Check container logs
- Verify port 4321 is exposed
- Check firewall/network settings
Auto-Deploy Not Working
- Verify auto-deploy is enabled
- Check webhook configuration in Gitea
- Manual trigger: Click "Deploy Now"
Update Deployment
After initial setup, updates are automatic:
# Make changes
cd moreminimore-redesign
# Commit and push
git add .
git commit -m "Update: [description]"
git push origin main
# Easypanel auto-deploys within 1-2 minutes
Rollback
To rollback to previous version:
- Go to Deployments tab
- Find previous successful deployment
- Click "Redeploy" on that version
Monitoring
- Logs: Easypanel → Service → Logs
- Deployments: Easypanel → Service → Deployments
- Resource Usage: Easypanel → Service → Metrics
Support
For Easypanel-specific issues:
- Documentation: https://easypanel.io/docs
- Discord: https://discord.gg/9bcDSXcZQ7
For this project:
- Check
DEPLOYMENT.md - Check
CHECKLIST.md