Browse Source

Use DB_HOST, DB_PORT env variables for MySQL configuration. Fixes #220

pull/194/head
Pēteris Caune 6 years ago
parent
commit
3230cea1e3
No known key found for this signature in database GPG Key ID: E28D7679E9A9EDE2
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      hc/settings.py

+ 2
- 0
hc/settings.py View File

@ -123,6 +123,8 @@ if os.getenv("DB") == "mysql":
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'HOST': os.getenv("DB_HOST", ""),
'PORT': os.getenv("DB_PORT", ""),
'NAME': os.getenv("DB_NAME", "hc"),
'USER': os.getenv("DB_USER", "root"),
'PASSWORD': os.getenv("DB_PASSWORD", ""),


Loading…
Cancel
Save