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
GOOGLE_SERVICE_CLIENT_EMAIL
GOOGLE_SHEETS_PRIVATE_KEY
GOOGLE_TASK_SHEET_ID
GOOGLE_IMPORTANT_CHANGE_SHEET_ID
GOOGLE_DICTIONARY_SHEET_ID
All are optional, but you will need to set the GOOGLE_*
variables if you want to use the “assigned pages” feature (see the “Google Sheets” section of README.md for more details).
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
master
. Supplying this argument is useful if you want to deploy a branch other than master.
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.