#!/usr/bin/env python
# -*- coding: utf-8 -*-
import pathlib


# server
LISTEN_PORT = 27850

# common
CWD = pathlib.PurePath(__file__).parents[0]
LOG_NAME = 'gargantua'
LOG_PATH = '/tmp/gargantua.log'

# web signal
OK = 0
ERROR = 1

# db
DB_HOST = 'localhost'
DB_PORT = 27016
DB_NAME = 'blog'

# search
ES_HOST = 'localhost'
ES_PORT = 17200

# posts
N_POST_PER_PAGE = 10

# sentry
SENTRY_HOST = 'localhost'
SENTRY_PORT = 9000
SENTRY_NAME = '2'

# test

DB_HOST = 'laisky.com'
ES_HOST = 'laisky.com'
SENTRY_HOST = 'laisky.com'

#!/usr/bin/env python
# -*- coding: utf-8 -*-
import pathlib


# server
LISTEN_PORT = 27850

# common
CWD = pathlib.PurePath(__file__).parents[0]
LOG_NAME = 'gargantua'
LOG_PATH = '/tmp/gargantua-blog.log'
suffix = 0

# web signal
OK = 0
ERROR = 1

# db
DB_HOST = 'localhost'
DB_PORT = 27016
DB_NAME = 'blog'

# search
ES_HOST = 'localhost'
ES_PORT = 17200

# posts
N_POST_PER_PAGE = 10

# sentry
SENTRY_HOST = 'localhost'
SENTRY_PORT = 9000
SENTRY_NAME = '2'

# test

DB_HOST = 'laisky.com'
ES_HOST = 'laisky.com'
SENTRY_HOST = 'laisky.com'

fix duplicate name