Web-monitoring-ui is decoupled from the other web monitoring components and interacts only with web-monitoring-db through web-monitoring-db's JSON api. Anyone with a Heroku account and credentials to web-monitoring-db, can deploy web-monitoring-ui and have a fully functional instance of the application. You can still deploy without credentials but will not be able to update annotations or make other changes to web-monitoring-db.
This deployment is simple and consists of:
- A git clone of this repository
- A free Heroku account and the Heroku CLI setup
- The script found at
/scripts/heroku-deploy.sh
In our deployment, environment variables are named:
WEB_MONITORING_DB_URL
FORCE_SSL
The script takes 2 arguments that are optional.
- The name of the heroku remote to deploy to. This is useful if you have multiple heroku remotes or have renamed them. It defaults to
heroku
. - The name of the local branch to be deployed. It defaults to
main
. Supplying this argument is useful if you want to deploy a branch other than main.
The script assumes and pushes from a branch named heroku-deploy
. It will create one or switch to it if it exists. You can't have a branch named heroku-deploy
that you are working in if you plan on using the script.