Skip to content

Latest commit

 

History

History
63 lines (40 loc) · 2.16 KB

deployment.md

File metadata and controls

63 lines (40 loc) · 2.16 KB

Deploy

Before deploying, make sure to run the tests and fix any issues. Read more about tests here.

Mobile

There are several ways to create release builds, the recommended way is with eas, these builds can be created locally or via eas servers, building online is free within certain usage limits, however building locally is always free

This command has the --local tag meaning that the build is created locally on your machine, not on eas servers.

npx eas build --platform android --profile production --local

You can configure these builds in the /app/eas.json file, for example you can change the buildType to apk or aab

"android": {
    "buildType": "apk"
}

It is recommended to submit an .aab file to the Play Store rather than an .apk, however apk will also be needed for download via our website

Read more here about eas builds

Alternatively you can still create builds locally via Xcode, Android Studio, or gradle commands same as a bare react native app, this circumvents the need for an expo account

cd app/android
./gradlew assembleRelease

Deploy the CMS and API

Go here for a visual overview of the deployment and architecture.

  1. Create a DigitalOcean account & Project

In order to create an account you will need to provide a payment method. You can use a credit card or Paypal. You will not be charged until you create a droplet/cluster.

  1. Create a cluster
  2. Create a droplet
  3. Configuration
  4. Build, tag, push & apply
  5. Fixing issues
  6. Set up DB via adminer

When everything is set up correctly you can quickly redeploy with this command, find more information about this here

yarn deploy:k8s

If you are working on multiple projects with multiple teams, you will need to switch between digital ocean and k8s contexts, the commands to do this are outlined here


Website

Deploy the delete-account website