# Hostcry cPanel Deployment

## Requirements

- Node.js 20 or newer
- MySQL or MariaDB database
- SSH or cPanel Terminal access
- Domain pointed to the hosting account: `theinfomix.com`

## Steps

1. Upload the project to your cPanel Node.js application directory.
2. Create a MySQL database and user from cPanel.
3. Copy `.env.example` to `.env` and fill in production values.
4. Set the Node.js app startup file to `server.js`.
5. Run `npm install --omit=dev`.
6. Run `npm run build`.
7. Run `npx prisma migrate deploy` or `npm run db:push` for first setup.
8. Run `npm run db:seed` for starter categories and sample articles.
9. Restart the Node.js app in cPanel.

## Environment Variables

- `NEXT_PUBLIC_SITE_URL=https://theinfomix.com`
- `DATABASE_URL=mysql://USER:PASSWORD@localhost:3306/DB_NAME`
- `AUTH_SECRET=...`
- `GOOGLE_CLIENT_ID=...`
- `GOOGLE_CLIENT_SECRET=...`
- SMTP variables for email login
- `OPENAI_API_KEY` for AI article generation
- `ADSENSE_CLIENT_ID` after AdSense approval

## Notes

Some shared hosting plans limit long-running Node processes. If Hostcry plan limits prevent Next.js SSR, deploy this app to Hostcry VPS, Render, Railway, DigitalOcean, or Vercel, while keeping the domain and email in cPanel.
