# Deployment guide for desk.amratef.site

## DNS

In your domain DNS zone, create:

- Type: A
- Name: desk
- Value: same IP as amratef.site (currently 66.29.148.128)
- TTL: Auto

Or if using an external Node host (Vercel):

- Type: CNAME
- Name: desk
- Value: cname.vercel-dns.com

## cPanel + Setup Node.js App (LiteSpeed)

1. Create subdomain `desk` pointing to a folder like `desk.amratef.site`
2. Open **Setup Node.js App**
3. Create application:
   - Node.js version: 20+
   - Application mode: Production
   - Application root: the subdomain folder
   - Application URL: desk.amratef.site
   - Application startup file: `server.js`
4. Upload project files (without `node_modules` and `.next` if you will build on server)
5. Open app terminal / SSH and run:

```bash
npm install --omit=dev
npx prisma generate
npx prisma migrate deploy
npm run db:seed
npm run build
```

6. Add environment variables from `.env.production.example`
7. Restart the Node.js application
8. Open https://desk.amratef.site

## Login after deploy

- admin@morpay.local / Admin@12345
- Change password immediately after first login
