Browse Source

local_settings.py.example

pull/114/head
Pēteris Caune 8 years ago
parent
commit
c6c195b016
2 changed files with 31 additions and 5 deletions
  1. +6
    -5
      README.md
  2. +25
    -0
      hc/local_settings.py.example

+ 6
- 5
README.md View File

@ -46,11 +46,12 @@ in development environment.
$ pip install -r healthchecks/requirements.txt
* make sure PostgreSQL server is installed and running, create
database "hc":
* healthchecks is configured to use a SQLite database by default. To use
PostgreSQL or MySQL database, create and edit `hc/local_settings.py` file.
There is a template you can copy and edit as needed:
$ psql --user postgres
postgres=# create database hc;
$ cd ~/webapps/healthchecks
$ cp hc/local_settings.py.example hc/local_settings.py
* create database tables and the superuser account:
@ -78,7 +79,7 @@ Some useful settings keys to override are:
`SITE_ROOT` is used to build fully qualified URLs for pings, and for use in
emails and notifications. Example:
SITE_ROOT = "https://my-monitoring-project.com"`
SITE_ROOT = "https://my-monitoring-project.com"
`SITE_NAME` has the default value of "healthchecks.io" and is used throughout
the templates. Replace it with your own name to personalize your installation.


+ 25
- 0
hc/local_settings.py.example View File

@ -0,0 +1,25 @@
# SITE_ROOT = "https://my-monitoring-project.com"
# SITE_NAME = "My Monitoring Project"
# DEFAULT_FROM_EMAIL = "[email protected]"
# Uncomment to use Postgres:
# DATABASES = {
# 'default': {
# 'ENGINE': 'django.db.backends.postgresql',
# 'NAME': 'your-database-name-here',
# 'USER': 'your-database-user-here',
# 'PASSWORD': 'your-database-password-here',
# 'TEST': {'CHARSET': 'UTF8'}
# }
# }
# Uncomment to use MySQL:
# DATABASES = {
# 'default': {
# 'ENGINE': 'django.db.backends.mysql',
# 'NAME': 'your-database-name-here',
# 'USER': 'your-database-user-here',
# 'PASSWORD': 'your-database-password-here',
# 'TEST': {'CHARSET': 'UTF8'}
# }
# }

Loading…
Cancel
Save