MINGLEO – UPLOAD TO CPANEL
==========================

This zip has three folders. None of them contains your .env files,
passwords, photos or logs, so uploading them never overwrites those.

  app-api/         the mobile app's API        -> public_html/app-api
  telegramdating/  the Telegram bot + admin    -> your bot folder (e.g. public_html/telegramdating)
  site/            the website                 -> your website folder

The API and website find the bot folder by themselves when it is called
"telegramdating" and sits next to them.


1. BACK UP FIRST
   cPanel -> File Manager -> select your current app-api, bot and website
   folders -> Compress -> download the .zip. Also cPanel -> Backup ->
   download a MySQL database backup.

2. UPLOAD
   File Manager -> public_html -> Upload this zip -> right-click it ->
   Extract. Then move (or merge) each folder onto its live folder above,
   letting files be replaced. Your .env files and storage folders stay.

3. NEW SETTINGS (app-api/.env)
   Open app-api/.env and add what you have (see app-api/.env.example for
   the full list with explanations). Minimum for launch:

     APP_DEFAULT_COUNTRY=AE
     APP_PHONE_COUNTRY_CODE=971

   Add later, when you have them:
     Phone codes:      SMS_PROVIDER=twilio, TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN, TWILIO_FROM
     Google sign-in:   GOOGLE_CLIENT_ID, GOOGLE_IOS_CLIENT_ID, GOOGLE_ANDROID_CLIENT_ID
     Apple sign-in:    APPLE_BUNDLE_ID, APPLE_SERVICE_ID, APPLE_TEAM_ID, APPLE_KEY_ID, APPLE_PRIVATE_KEY_PATH
     AI:               GROQ_API_KEY, OPENROUTER_API_KEY, ZAI_API_KEY, NVIDIA_API_KEY
     Store purchases:  APPLE_IAP_ISSUER_ID, APPLE_IAP_KEY_ID, APPLE_IAP_PRIVATE_KEY_PATH,
                       GOOGLE_PLAY_SERVICE_ACCOUNT_PATH

   Keep every .p8 / .json key file OUTSIDE public_html (e.g. /home/USER/keys/).

4. UPDATE THE DATABASE (migrations 007-010)
   cPanel -> Terminal:
       cd ~/public_html/app-api
       php migrate.php
   You should see "Applied: 007...", "008...", "009...", "010...".

   No Terminal? cPanel -> Cron Jobs -> add a job "Once per minute" with
       cd /home/USER/public_html/app-api && php migrate.php
   wait one minute, then DELETE the cron job. (Running it twice is safe.)

5. CHECK IT WORKS
   Open https://YOURDOMAIN/app-api/index.php?action=health
   It should show {"ok":true,...}.

6. ADMIN PANEL (bot admin)
   - Subscriptions: plan prices are now in US dollars (1 week, 1 month,
     3 months, 6 months). Paystack charges the same in cedis at today's rate.
   - Payment Methods: Telegram Stars prices for the 4 plans. Leave
     "Show Pay with Telegram Stars in the mobile app" OFF while the app is
     in App Store / Google Play review.
   - Fraud review: new page for accounts the anti-fraud system holds.
   - Contact unlock price was set to 50 cedis (currency is now GHS).

7. IF SOMETHING BREAKS
   Put back the folders from step 1. The database changes only add
   columns and tables, so the old files keep working with them.
