settings: Add option to set remote postgres port.

This commit is contained in:
Vishnu KS
2019-12-12 15:18:49 +05:30
committed by Tim Abbott
parent f3c224058f
commit 8b57e39c7e
4 changed files with 6 additions and 1 deletions

View File

@@ -73,6 +73,8 @@ try:
from django.conf import settings
if settings.REMOTE_POSTGRES_HOST != '':
pg_args['host'] = settings.REMOTE_POSTGRES_HOST
if settings.REMOTE_POSTGRES_PORT != '':
pg_args['port'] = settings.REMOTE_POSTGRES_PORT
USING_PGROONGA = settings.USING_PGROONGA
except ImportError:
# process_fts_updates also supports running locally on a remote