Skip to content

Deployment

Jacob Smith edited this page Jan 19, 2021 · 7 revisions

Want to deploy your app so you can access it on the web?? Read on 😸

1. Release Notes (Optional)

If you are releasing a new version of the app, edit app/src/ReleaseNotes.tsx to update users on what changed.

2. Version Bumps (Optional)

There is a custom script to bump the package.json versions and mobile build numbers.

# Bump the versions
node version.js versions VERSION

# Or bump the versions *and* mobile build numbers
node version.js versions-n-build VERSION

3. Building

To get things deployed, you'll have to build them first. Run the following set of commands to build the functions, native-audio and app folders.

# in native-audio/
npm run build

# in functions/
npm run build

# in app/
npm run build:web-production

Note that this builds the web app for production.

4. Deployment

This is the last step, hooray!! Just run the deploy command with the correct project ID.

# <PROJECT_ID> should be replaced with the value you just saved
npx firebase-tools deploy --project <PROJECT_ID>

If everything goes well, Relar should be running at https://<PROJECT_ID>.web.app.

Ok so... what about mobile deployment? I currently deploy to Firebase App Distribution but the setup is rather complex. If you're interested in deploying the iOS or Android apps, email me at jsmith@hey.com.

5. Tag & Push (Optional)

Commit your changes once everything succeeds using the version as the commit message, tag the commit using the v<VERSION> pattern and then push everything.

6. Release (Optional)

Create a release on GitHub using the tag that you just pushed and copy over the release notes.

Clone this wiki locally