OrderThis QR LIVE cutover — explicitly switches guest ordering to real POS/KDS.
VPS: upload this ZIP to /root. Extract into /root/orderthis-qr-go-live. Run python3 /root/orderthis-qr-go-live/go-live.py.
The installer preflights schema, location 1, exact API anchors and PHP syntax before touching live files. Optional --check performs a read-only preflight. Existing server-open gate must already be present. Additive QR waitlist/rate tables are created if missing. No sales, tabs, staff, host parties, secrets or configuration files are imported from staging. It backs up live api.php, host_api.php, QR config and any live bridge file under /root/orderthis-qr-live-backup-TIMESTAMP. A changed source anchor stops installation rather than overwriting unknown code.
It preserves QR secrets, maps chucks to /var/www/orderthis/chucksburgers and location 1, adds checked guest/table integration if absent, changes Host public_guest_url for location 1, and installs the live bridge. Private Host wait links retain their existing route and tokens. Other locations' Host URLs remain unchanged. There is no APK replacement.
The current cPanel private connection can continue calling the existing staging bridge endpoint: that bridge loads the shared QR configuration, which now selects LIVE POS. Keep that bridge file in place. For a clean live endpoint, the installer creates /root/orderthis-qr-live-connection.php with the existing secret. Transfer it privately and overwrite cPanel private/connection.php; never post its contents.
cPanel: copy ONLY the contents of cpanel-update/ into /home/orderthis/public_html/qr.orderthis.website/ replacing those two files. This corrects relative menu image origins to LIVE POS and refreshes asset versions. Keep private/connection.php unchanged unless doing the optional live-endpoint cleanup above.
Test: open Host, refresh, reopen Guest QR and Copy link. It must be https://qr.orderthis.website/index.php?r=chucks. Verify an unopened table link is blocked; staff opens it in live POS, then guest table access works. Any sent test order is a REAL kitchen order; notify the kitchen before testing. Check correct table, same guest tab on additions, separate KDS chit per send, server assignment, receipt and real payment domain configuration before customer use. Close test tabs using ordinary staff tools.
Rollback: restore the saved api.php/host_api.php/config.php backups over their original paths; preserve destination ownership/mode. If cPanel private connection was changed to the live endpoint, restore its previous copy too. The restore.json in the backup records exact destinations. The additive QR database tables can remain. No test order or payment rollback is performed by restoring files.
Local validation: Python syntax, supported POS patch anchors, resulting PHP syntax and existing Host public URL transformation verified. Actual live source/database compatibility is checked by the installer on the VPS, and end-to-end live testing remains required.
