-
Notifications
You must be signed in to change notification settings - Fork 0
Deployment
Want to deploy your app so you can access it on the web?? Read on 😸
If you are releasing a new version of the app, edit app/src/ReleaseNotes.tsx
to update users on what changed.
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
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.
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.
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.
Create a release on GitHub using the tag that you just pushed and copy over the release notes.