# Configuration for gunicorn

import os, sys
# import multiprocessing

sys.path.append(os.path.dirname(os.path.realpath(__file__)))
from dsechat.libs import env_file
env_file.load()

bind = "%(ip)s:%(port)s" % {
    'port': os.environ.get('PORT', '8000'),
    'ip': os.environ.get('WEB_BIND_IP', '127.0.0.1')
}

# workers = multiprocessing.cpu_count() * 2 + 1
workers = 1

from django.conf import settings
accesslog = settings.get('GUNICORN_ACCESS_LOG', 'gunicorn.access.log')
errorlog = settings.get('GUNICORN_ERROR_LOG', 'gunicorn.error.log')

@@ -412,37 +412,32 @@
 slog = settings.
-get('
 GUNICORN_ACCESS_
@@ -443,33 +443,8 @@
 _LOG
-', 'gunicorn.access.log')
 %0Aerr
@@ -460,21 +460,16 @@
 ettings.
-get('
 GUNICORN
@@ -482,29 +482,5 @@
 _LOG
-', 'gunicorn.error.log')
 %0A

fix gunicorn conf