Review apps are "pre-release" versions of your Dash apps automatically created by your CI platform when making a pull request.
These apps inherit the configuration options of their production equivalent, ensuring parity between environments for testing. Review apps enable you to quickly deploy and share proposed changes with the rest of your team before merging them into production. The review apps are deleted once those changes go live.
To get started you will need:
- Dash Enterprise Server instance
- Deployed Dash app
- Repository containing your Dash app's source code (e.g. GitHub, GitLab, Bitbucket)
- CI platform (e.g. GitHub Actions, GitLab CI/CD, Bitbucket Pipes & Deployment, CircleCI)
- CI pipeline for your app's repository
- CI platform configuration file
- Review app scripts
- Designate a service account with admin privileges on Dash Enterprise.
- Generate an SSH key without a passphrase, and add the public key to Dash Enterprise.
- Generate an API key for the service account and all developer accounts that will push changes to the app repository.
- Add the private SSH key, and Dash Enterprise service and developer API keys as environment variables on your CI platform.
- Add your CI platform configuration file to the root of your project folder. For example, in CircleCI this file would be
.circleci/config.yml
. - Copy the
.review-apps
folder from this repository to the root your project folder. - In your
.review-apps
folder, update the specified variables in thesettings.py
. - Set up your CI configuration to run the Review App scripts. See
.circleci/config.yml
for an example using CircleCI's configuration.
See Review Apps for more detailed instructions.
After setting up, review apps will get automatically created anytime you make a pull request from your review app branch. When pull request are merged, those approved changes get deployed to your main app branch.
- In your app's repository, create and checkout a new branch.
- Make changes to your apps source code on your review app branch.
- Commit and push those changes.