Skip to content

Latest commit

 

History

History
38 lines (23 loc) · 2.47 KB

Deploying.md

File metadata and controls

38 lines (23 loc) · 2.47 KB

Steps to deploy the frontend app to google cloud

Development:

The dev instance of the app is automatically deployed when any commits are added to the master branch.

The dev instance url is: https://solana-options-frontend-ckpgwptysa-uc.a.run.app/

You can check if this worked, and determine which commit was last deployed, by looking at the Cloud Build > History page in GCP: cloud build history cloud build history details

Production:

Production can be deployed by creating a new release tag in github. To do this, go to the Releases section of the frontend repo. Then click on Draft a New Release: draft new release

Enter a tag with the pattern release-x.x.x where the x'es are numbers (hopefully following semver). IMPORTANT: the tag has to follow this pattern exactly to trigger a production cloud build deploy. And ANY tag that follows this pattern will trigger a production deploy whether it was added from the UI or not. new release

Publishing the tag will set off the cloud build trigger for production deployment using the tagged commit.

Confiuring Environment Variables:

In both dev or prod, you can configure the environment variables of the app with the following steps:

  1. Go to the Cloud Run page in google cloud and click on the solana-options-frontend cloud run instance: cloud run page

  2. From the details page about this cloud run instance, click on Edit & Deploy New Revision: edit and deploy

  3. Go to the "Variables" tab

  4. Add / Remove / Change any variables you need to change, then click "Deploy": cloud run variables

The app will be re-deployed with the updated environment variables, that's it!