E-BAG on Verpex
================

Upload this zip. No SSH is required. The Android app is not in it. Phones keep using the local API until a later build points them at this domain.

1. Unzip the archive into the domain web root (for example public_html).
   The root .htaccess sends visitors into public/ so the site URL does not include /public.
2. In the Verpex panel, select PHP 8.3 or 8.4 for the domain.
3. Leave the document root on that folder. Do not require /public in the address.
4. Make the app folder, storage, and bootstrap/cache writable (755 or 775).
5. Open https://ebaglogistics.online/install
   Enter the site URL, the MySQL host, database name, user, and password from the Verpex database screen, and the admin name, email, and password.
   The page creates the tables, the starting records, and that one admin account, then removes itself.
   If public/install.php is still on the server after that, delete it. Keep storage/app/installed.
   Do not run migrate:fresh or any wipe. The local SQLite database is not copied.

6. In the Verpex cron screen, add two jobs every minute. Use the PHP 8.3 path Verpex shows and the real app path:

   * * * * * /path/to/php /home/USERNAME/ebag/artisan schedule:run >> /dev/null 2>&1
   * * * * * /path/to/php /home/USERNAME/ebag/artisan queue:work --stop-when-empty >> /dev/null 2>&1

   schedule:run expires and retries rider offers.
   queue:work sends queued mail and other background jobs, then exits.
   The installer cannot create these cron jobs.

7. Open https://ebaglogistics.online/login and sign in with the admin email.
   Open https://ebaglogistics.online/api/v1/health

Optional, edit .env on the server after install, then the next request uses the new values:

- SMTP: set MAIL_MAILER=smtp plus MAIL_HOST, MAIL_PORT, MAIL_USERNAME, MAIL_PASSWORD, and MAIL_FROM_ADDRESS. Until then mail is written to the log so a dead mail server cannot fail a booking.
- Google Maps: MAPS_PROVIDER and the map keys.
- Phone push: NOTIFICATIONS_PUSH_DRIVER=fcm, FCM_PROJECT_ID, and FCM_SERVICE_ACCOUNT pointing at a Firebase JSON uploaded outside the public folder.
- Card checkout: Paystack, Flutterwave, or Stripe keys. Bank transfer does not need them.
- Signup OTP: SMS_ENABLED=true and a provider key such as TERMII_API_KEY.
- Driver identity: Admin Settings → Identity, or IDENTITY_MONO_ENABLED plus MONO_SECRET_KEY and MONO_WEBHOOK_SECRET.
