# Deployment Guide - MoreminiMore New Website ## Quick Deploy ### Prerequisites - Easypanel server running at `http://110.164.146.47:3000` - Gitea repository: https://git.moreminimore.com/kunthawat/moreminimore-new ### Deployment Steps 1. **Open Easypanel Dashboard** URL: http://110.164.146.47:3000 2. **Navigate to Project** - Project: `moreminimore-newastro` - Service: `moreminimore-newastro` 3. **Trigger Deployment** - Click "Deploy" button in the dashboard - Or use API: ```bash curl -X POST "http://110.164.146.47:3000/api/trpc/services.app.deployService" \ -H "Authorization: Bearer YOUR_TOKEN" \ -H "Content-Type: application/json" \ -d '{"json":{"projectName":"moreminimore-newastro","serviceName":"moreminimore-newastro","forceRebuild":true}}' ``` 4. **Monitor Deployment** - Check logs in Easypanel dashboard - Build takes ~2-3 minutes ## Build Configuration - **Build Type**: Nixpacks (Astro detection) - **Node Version**: 20-alpine (via nixpacks) - **Port**: 4321 (Astro default) - **Build Command**: `npm run build` - **Output Directory**: `dist/` ## Environment Variables The following are set automatically by Nixpacks: - `PORT=4321` - `NODE_ENV=production` No additional environment variables required. ## Troubleshooting ### Docker Build Failing If you see `docker buildx build` errors: 1. Check Easypanel server Docker daemon is running 2. Try redeploying after a few minutes 3. Contact server administrator if issue persists ### Build Timeout - Nixpacks build timeout: 15 minutes - If build takes longer, check npm dependencies ### Port Issues - Default Astro port: 4321 - If 4321 is in use, set `PORT` env var ## Manual Build (Alternative) If Easypanel deployment fails, build locally: ```bash cd /Users/kunthawatgreethong/Gitea/moreminimore-new npm run build ``` Then deploy the `dist/` folder manually via SFTP or other method. ## Service Details | Property | Value | |----------|-------| | Project | moreminimore-newastro | | Service | moreminimore-newastro | | Type | app | | Build | nixpacks | | Git | https://git.moreminimore.com/kunthawat/moreminimore-new | | Branch | main |