1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-12 21:35:30 +00:00

fix gunicorn.conf.py

This commit is contained in:
sniper-py
2019-12-17 14:21:10 +08:00
parent 1b045dba17
commit 816469f755
3 changed files with 5 additions and 5 deletions

View File

@@ -20,7 +20,7 @@ default_seafile_data_dir=${TOPDIR}/seafile-data
central_config_dir=${TOPDIR}/conf
manage_py=${INSTALLPATH}/seahub/manage.py
gunicorn_conf=${TOPDIR}/conf/gunicorn.conf
gunicorn_conf=${TOPDIR}/conf/gunicorn.conf.py
pidfile=${TOPDIR}/pids/seahub.pid
errorlog=${TOPDIR}/logs/gunicorn_error.log
accesslog=${TOPDIR}/logs/gunicorn_access.log

View File

@@ -1248,7 +1248,7 @@ class GunicornConfigurator(AbstractConfigurator):
pass
def generate(self):
self.gunicorn_conf = os.path.join(env_mgr.central_config_dir, 'gunicorn.conf')
self.gunicorn_conf = os.path.join(env_mgr.central_config_dir, 'gunicorn.conf.py')
template = '''
import os

View File

@@ -287,7 +287,7 @@ function get_fileserver_port () {
function gen_gunicorn_conf () {
mkdir -p ${default_conf_dir}
gunicorn_conf=${default_conf_dir}/gunicorn.conf
gunicorn_conf=${default_conf_dir}/gunicorn.conf.py
if ! $(cat > ${gunicorn_conf} <<EOF
import os
@@ -307,7 +307,7 @@ timeout = 1200
limit_request_line = 8190
EOF
); then
echo "failed to generate gunicorn.conf";
echo "failed to generate gunicorn.conf.py";
err_and_quit
fi
}
@@ -502,7 +502,7 @@ echo
# echo "${seafile_data_dir}" > "${default_ccnet_conf_dir}/seafile.ini"
# -------------------------------------------
# Generate gunicorn.conf
# Generate gunicorn.conf.py
# -------------------------------------------
gen_gunicorn_conf;