2.1 KiB
2.1 KiB
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
-
Open Easypanel Dashboard URL: http://110.164.146.47:3000
-
Navigate to Project
- Project:
moreminimore-newastro - Service:
moreminimore-newastro
- Project:
-
Trigger Deployment
- Click "Deploy" button in the dashboard
- Or use API:
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}}' -
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=4321NODE_ENV=production
No additional environment variables required.
Troubleshooting
Docker Build Failing
If you see docker buildx build errors:
- Check Easypanel server Docker daemon is running
- Try redeploying after a few minutes
- 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
PORTenv var
Manual Build (Alternative)
If Easypanel deployment fails, build locally:
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 |