# cPanel Node.js Deployment

Use these settings for the backend app in cPanel / LiteSpeed:

1. Application root: the `server` folder contents uploaded to the app directory.
2. Application startup file: `app.cjs`.
3. Run `npm install --omit=dev` in the application root, or use cPanel's dependency install action.
4. Set environment variables in cPanel:
   - `NODE_ENV=production`
   - `PORT` should stay as cPanel provides it.
   - `JWT_SECRET` should be a strong private value.
   - `JSON_DB_PATH` is optional. Default is `data/db.json` inside the application root.

Do not set the startup file to `src/index.js` on LiteSpeed, because its launcher loads startup files through CommonJS.
