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.

53 lines
1.3 KiB

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