Closed demian-ionov closed 4 years ago
pool_mode = session server_reset_query = DISCARD ALL
[Database] ENGINE=pgsql DB=ccnet_db USER=seafile PASSWD=secret HOST=127.0.0.1 # UNIX_SOCKET=/run/postgresql PORT=6432
[database] type=pgsql db_name=seafile_db user=seafile password=seacret host=127.0.0.1 # unix_socket=/run/postgresql port=6432
DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'NAME': 'seahub_db', 'USER': 'seafile', 'PASSWORD': 'secret', 'HOST': '127.0.0.1', # 'HOST': '/run/postgresql', 'PORT': '6432' } }
export INSTALLPATH=/opt/seafile/seafile-server-latest export CCNET_CONF_DIR=/opt/seafile/conf export SEAFILE_CONF_DIR=/opt/seafile/conf export SEAFILE_CENTRAL_CONF_DIR=/opt/seafile/conf export PYTHONPATH=${INSTALLPATH}/seafile/lib64/python3.6/site-packages:${INSTALLPATH}/seahub/thirdpart:$PYTHONPATH python ${INSTALLPATH}/seahub/manage.py migrate --run-syncdb
Support PostgeSQL server.
Need use connection pooler!
Example:
pgbouncer.ini
ccnet.conf
seafile.conf
seahub_settings.py
Django syncdb: