PerfCompare is hosted on Netlify, and is updated every time commits are pushed to the following branches:
| Branch Name | URL | Description |
|---|---|---|
| production | https://perf.compare/ | Production branch, updated every 1-2 weeks. |
| beta | https://beta--mozilla-perfcompare.netlify.app/ | This is the current development branch. |
| staging | https://staging--mozilla-perfcompare.netlify.app/ | Staging branch before releasing to beta (it's not in use currently) |
Every pull request will be deployed as well to a separate domain, whose link will be added automatically to the PR in a comment.
The easiest by far is to create a pull request on GitHub. It would be nice to write down the main changes in the PR description.
After the PR is created all checks should run. When it's ready the PR can be merged. Be careful to always use the create a merge commit functionality, not squash or rebase, to keep a better history.
Once it's done the new version should be deployed automatically. You can follow the process on Netlify's dashboard if you have access.
The easiest way is to reset the production branch to a previous version, and force push it. You'll need to enable force-pushing for the branch production, using the Branch Settings on GitHub.
You can use the following script:
sh bin/revert-last-deployment.sh
When you're ready with a fix landed on beta, you can push a new version to the
production branch as described in the first part.