You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.9 KiB

10 years ago
9 years ago
9 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. # healthchecks
  2. [![Build Status](https://travis-ci.org/healthchecks/healthchecks.svg?branch=master)](https://travis-ci.org/healthchecks/healthchecks)
  3. [![Coverage Status](https://coveralls.io/repos/healthchecks/healthchecks/badge.svg?branch=master&service=github)](https://coveralls.io/github/healthchecks/healthchecks?branch=master)
  4. ![Screenshot of Welcome page](/stuff/screenshots/welcome.png?raw=true "Welcome Page")
  5. ![Screenshot of My Checks page](/stuff/screenshots/my_checks.png?raw=true "My Checks Page")
  6. ![Screenshot of Period/Grace dialog](/stuff/screenshots/period_grace.png?raw=true "Period/Grace Dialog")
  7. healthchecks is a watchdog for your cron jobs. It's a web server that listens for pings from your cron jobs, plus a web interface.
  8. It is live here: [http://healthchecks.io/](http://healthchecks.io/)
  9. The building blocks are:
  10. * Python 2 or Python 3
  11. * Django 1.8
  12. * PostgreSQL or MySQL
  13. ## Setting Up for Development
  14. These are instructions for setting up HealthChecks Django app
  15. in development environment.
  16. * prepare directory for project code and virtualenv:
  17. $ mkdir -p ~/webapps
  18. $ cd ~/webapps
  19. * prepare virtual environment
  20. (with virtualenv you get pip, we'll use it soon to install requirements):
  21. $ virtualenv --python=python3 hc-venv
  22. $ source hc-venv/bin/activate
  23. * check out project code:
  24. $ git clone [email protected]:healthchecks/healthchecks.git
  25. * install requirements (Django, ...) into virtualenv:
  26. $ pip install -r healthchecks/requirements.txt
  27. * make sure PostgreSQL server is installed and running, create
  28. database "hc":
  29. $ psql --user postgres
  30. postgres=# create database hc;
  31. * create database tables, triggers, superuser:
  32. $ cd ~/webapps/healthchecks
  33. $ ./manage.py migrate
  34. $ ./manage.py ensuretriggers
  35. $ ./manage.py createsuperuser
  36. * run development server:
  37. $ ./manage.py runserver