26 строки
614 B
Plaintext
Executable File
26 строки
614 B
Plaintext
Executable File
import os
|
|
import sys
|
|
|
|
SETTINGS_DIR = os.path.realpath(os.path.join(os.path.dirname(__file__), \
|
|
os.path.pardir, os.path.pardir, "site/app/config/migrations"))
|
|
|
|
sys.path.append(SETTINGS_DIR)
|
|
|
|
import settings
|
|
|
|
s = settings.params
|
|
|
|
### IT Change this to connect to the slave that sphinx reads from
|
|
MYSQL_PASS = s['password']
|
|
MYSQL_USER = s['user']
|
|
MYSQL_HOST = s['host']
|
|
MYSQL_NAME = s['database']
|
|
### /IT
|
|
|
|
CATALOG_PATH = '/opt/local/data/sphinx'
|
|
LOG_PATH = '/opt/local/log/searchd'
|
|
ETC_PATH = '/opt/local/etc'
|
|
LISTEN_PORT = 3312
|
|
MYSQL_LISTEN_PORT = 3307
|
|
MYSQL_LISTEN_HOST = 'localhost'
|