mirror of https://github.com/zulip/zulip.git
Enable postgres on prod server.
(imported from commit 4cf25c4ffe685dcfeb8d6c87ade3fcca7a92a807)
This commit is contained in:
parent
15c83127ee
commit
35226c352d
|
@ -32,7 +32,7 @@ DATABASES = {
|
|||
},
|
||||
}
|
||||
|
||||
if STAGING_DEPLOYED or platform.node() == 'postgres.humbughq.com':
|
||||
if DEPLOYED:
|
||||
DATABASES["default"] = {
|
||||
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
||||
'NAME': 'humbug',
|
||||
|
@ -56,13 +56,6 @@ if STAGING_DEPLOYED or platform.node() == 'postgres.humbughq.com':
|
|||
'sslmode': 'verify-ca',
|
||||
},
|
||||
}
|
||||
elif DEPLOYED:
|
||||
DATABASES['default'] = {
|
||||
'ENGINE': 'django.db.backends.mysql',
|
||||
'OPTIONS': {
|
||||
'read_default_file': '/etc/mysql/my.cnf',
|
||||
},
|
||||
}
|
||||
elif False:
|
||||
DATABASES["default"] = {
|
||||
'ENGINE': 'django.db.backends.postgresql_psycopg2',
|
||||
|
|
Loading…
Reference in New Issue