VillageWheels MART POS - LIVE deployment, 01 December 2026
Target: https://pos.villagewheels.in
Backend: /var/www/village-wheels/app/Modules/MartPos
Database: village_wheels on the same server. Existing food/app modules are not replaced.

1. Upload VillageWheels-MART-live.tar.gz to /root. Avoid concurrent deployments.
   cd /root
   tar -xzf VillageWheels-MART-live.tar.gz
   bash VillageWheels-MART-live/install-live.sh
   Only after SUCCESS:
   bash VillageWheels-MART-live/setup-domain.sh

The installer requires the exact reviewed AppServiceProvider baseline, no existing
MART installation/tables, production/live environment, debug disabled and local
MySQL. It creates a private code/database backup in /root and prints rollback.
Backups are not an atomic snapshot of code and database. No restore was tested.
Do not restore a database backup over orders placed after the backup.
No .env change, global APP_URL change, staging database import, customer data import,
food module edit or gateway credential overwrite is performed.
Settings start disabled. All existing live app order/inventory functions are retained.
Checkout is enabled in release config based on user-reported app and POS stock tests.
Combined concurrency and cancellation restoration were not independently verified.

2. Domain/SSL:
DNS was observed at 157.245.96.237 in the supplied report. The domain script adds
only vw-mart-pos.conf and vw-mart-pos-ssl.conf, validates Apache then reloads.
It uses existing mod_php, or reuses the explicit PHP-FPM socket handler from
backend-le-ssl.conf. It stops rather than guessing if that handler is unavailable.
Certbot must already be installed. Follow any interactive CA account/terms prompts.
Allow inbound HTTP/HTTPS for certificate issuance. A dedicated Apache reload hook
is added for renewal. Confirm certbot's renewal timer/service is enabled.
On domain failure, only the new POS sites are disabled; configs remain for review.
Do not repeatedly rerun a stopped installer or bypass checksum checks; share its output.

3. Configure LIVE admin:
https://admin.villagewheels.in/admin/business-settings/mart-pos
Set monthly, six-monthly and yearly prices, enable POS, enable subscription purchase
and desired separate POS gateway switches. Existing production gateway credentials
are reused; rider switches/wallet records are unchanged. Sandbox accounts are rejected.
Set live Google client ID/secret and register this exact authorized redirect URI:
https://pos.villagewheels.in/mart-pos/auth/google/callback
Staging OAuth credentials/settings and test subscriptions are NOT copied.
Enable the vendor using (replace VENDOR_ID):
https://admin.villagewheels.in/admin/vendors/VENDOR_ID/mart-pos
Vendor uses registered mobile OTP or linked Google identity, then buys subscription.
Production has no staging free-subscription action. Renewals extend current expiry.
Configure a working delivery mailer and enable email reminders in POS settings.
The installer adds a five-minute MART subscription maintenance cron as www-data.
The subscription payment flow verifies payment on the server; never activate access
just from the browser redirect or a cashier confirmation. Walk-in cash/QR remains local.

4. LIVE printer setup:
Download VillageWheels-MART-Live-Printer-Setup.zip, extract all files, then open
VillageWheelsMARTPrinterSetup.exe. It is also downloadable from POS Print Settings.
Install printer driver, start discovery, select the physical printer in website,
save size/enabled state, generate pairing token, enter live vendor ID/token in setup,
install and test print. Website preview is used; helper submits to Windows spooler.
Live uses MartLive_VENDORID, port 17849 and separate MartLivePrintService folders.
Staging MART and food printer pairing/services are not reused or changed.
Do not delete journals or retry uncertain jobs blindly; explicit reprint can duplicate.
IMPORTANT: this helper is UNSIGNED. Publisher metadata is present but it does not
solve your Windows 'publisher cannot be confirmed' block. A trusted signing
certificate/signing service is still required. Do not disable Windows protections.
Physical printing and real Windows service installation were not tested here.

5. After installation:
Check existing app/admin/food login, POS login, prices, GST/NON-GST invoices,
local cash/QR checkout, general items, stock, app order acceptance and subscription
purchase. Run a small controlled live sale only when you intend a real transaction.
Verify actual receipt printing after resolving the Windows signing restriction.

Rollback: use the exact command printed by install-live.sh. It restores the previous
AppServiceProvider and removes only the MART cron. It retains POS files/tables,
sales/payments, SSL and domain config. Stop MART LIVE helpers before queue review.
Never run migration rollback/reset/fresh or restore all live database data blindly.

Validation: 98 PHP/Laravel checks using SQLite and mocked gateways; 12 browser
print-flow checks with mocked API; PHP/Blade/PDF validation; C# compilation;
PowerShell and Bash syntax parsing; UTF-8/hash checks on delivered archive.
No live deployment, real payment, physical print, MySQL concurrency test or
Windows service installation has been performed by the assistant.
