##// END OF EJS Templates
fix(configs): removed waitress as a default runner for web service on development....
fix(configs): removed waitress as a default runner for web service on development. One of the big issues discovered receantly was due to waitress vs gunicorn differences on handling requests. Since gunicorn has a nice dev mode with code reloader we should use it as a default runner so we can avoid such issues in the past where dev setup runned different workers than production.

File last commit:

r1189:2c7f5b16 default
r1236:23af3321 default
Show More
__init__.py
41 lines | 1.3 KiB | text/x-python | PythonLexer
initial commit
r0 # RhodeCode VCSServer provides access to different vcs backends via network.
source-code: updated copyrights to 2023
r1126 # Copyright (C) 2014-2023 RhodeCode GmbH
initial commit
r0 #
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
fix(core): don't rely on pkgutil to extract the version info of project
r1188 import os
initial commit
r0
feat(version): cache version to read from it not from file
r1189 __version__ = ''
initial commit
r0
fix(core): don't rely on pkgutil to extract the version info of project
r1188 def get_version():
feat(version): cache version to read from it not from file
r1189 global __version__
if __version__:
return __version__
fix(core): don't rely on pkgutil to extract the version info of project
r1188 here = os.path.abspath(os.path.dirname(__file__))
ver_file = os.path.join(here, "VERSION")
with open(ver_file, "rt") as f:
version = f.read().strip()
feat(version): cache version to read from it not from file
r1189 __version__ = version
fix(core): don't rely on pkgutil to extract the version info of project
r1188 return version
exc_store: allow to specify a custom path for exception store.
r519
# link to config for pyramid
CONFIG = {}
# Populated with the settings dictionary from application init in
#
PYRAMID_SETTINGS = {}