Skip to main content

Deployment

Dependencies

Versioning

Please refer to Semver for more information.

The master branch is auto versioned using semantic release which is why it is crucial that pull request conventions are followed.

Deploying to Firebase

Production

Set Sentry environment variables. You can copy the auth token from Sentry here.

  • On your local machine, make sure you're on the master branch and have the latest changes.
    • git pull origin master
  • Add or update with the correct version in the .env.production file.
    • If you don't have the .env.production file, create one in the root of the project directory with the following details:
      • ENV='production'
        REACT_APP_URL="https://app.reos.co.za"
        REACT_APP_API_URL="https://api.reos.co.za/api"
        REACT_APP_BASE_URL="https://api.reos.co.za"
        REACT_APP_INSIGHTS_URL="https://api.reos.co.za/insights"
        REACT_APP_WEBSOCKET_URL="ws://api.reos.co.za/api"
        REACT_APP_SENTRY_ENV=production
        SASS_PATH=node_modules:src
        RBN_VERSION="2.92.2"
        SENTRY_ORG=reos-05
        SENTRY_PROJECT=robin-client
        REACT_APP_GA_ID="UA-168141646-2"
        REACT_APP_HEAP_ID="967565107"
        HOSTING_TARGET=production
        ```
    • You can find the latest version by going to the robin-client Github homepage. There is a version under Releases in the sidebar
    • Update the RBN_VERSION variable in the .env.production file to the latest version.
  • Run yarn deploy .env.production
  • The outpt of the script will let you know if the deployment was successful or not.
  • Post a message in Slack in the #changelog channel following the format prescribed in the channel description. It needs to include the version.