Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Deployment Plan for Release to Production

This document explains the deployment plan of the OpenRice x HungryHub integrations project to the production environment.

Pre-Deployment Steps

  1. Create Pull Request (PR) from feat/vendor-api-integrations to main branch [Done]
  2. Synchronize feat/vendor-api-integrations with main [Done]
  3. Get reviews from other team members [Done]
  4. Ask webhook configuration for production environment to OpenRice team and TagThai team [No need for now because OpenRice and TagThai webhook is not deployed yet]

Deployment Steps

  1. Update the config for these keys in the production environment
OPENRICE_WEBHOOK_CLIENT_TOKEN=access-token

TAGTHAI_API_URL='https://backend-api-dev.tagthai.com/api'
TAGTHAI_SSO_USER_URL='https://backend-api-dev.tagthai.com/api/service-public/auth-sso-service/user-info'
TAGTHAI_API_KEY='$2a$10$xdHq25exEevdBCW1EQQvx.r/Ms03./HzcQW40H1XnqJluVZoDGWWi'

TAGTHAI_WEBHOOK_URL='https://backend-api-dev.tagthai.com/api/backend/hungryhub-booking-service/booking/callback'

Notes: We need to update the above environment keys after the OpenRice and TagThai webhook are released. For now, no need to fill in with the actual values but the keys must be exist before we merge the PR.

  1. Merge and squash the PR into the main branch
  2. Announce to the teams that the OpenRice integrations project is deploying to production

Post-Deployment Steps

1. Create a new application for the OpenRice and TagThai vendor on https://hungryhub.com/oauth/applications

- Click the New Application button and fill out the form for the OpenRice and TAGTHAi vendor. Here is an example of the staging form

Form:

  1. 1. For OpenRice
    
    1. For TagThai

2. Fill out the Openrice Webhook Url field in the admin setting (https://hungryhub.com/admin/settings?locale=en) with OpenRice production webhook URL [For now no need to change] example:

3. Create a new account for the Partner report

- Name: OpenRice

- Website: www.openrice.com

- Instagram: openrice.instagram

- Facebook: openrice.facebook

- Twitter: openrice.twitter

- Avatar:

openrice_logo.svg

- Email: openrice@hungryhub.com

- Password: openricexhungryhub

- Password confirmation: openricexhungryhub

- Channel: pick "HH x OpenRice"

4. Give the API_KEY and API_SECRET_KEY to the OpenRice team to access the Hungry Hub systems.

example: