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.

59 lines
1.6 KiB

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