mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Don't reload the paster app when run with pserve
Using gunicorn with paster command line causes the application to load before gunicorn. In this case, there is no choice but to preload the application. Document this fact. Fixes #528.
This commit is contained in:
parent
63600aa6b3
commit
90fb09f618
@ -122,3 +122,8 @@ And then as per usual::
|
||||
|
||||
$ cd yourpasteproject
|
||||
$ paster serve development.ini workers=2
|
||||
|
||||
However, in this configuration, Gunicorn does not reload the application when
|
||||
new workers are started. See the note about preloading_.
|
||||
|
||||
.. _preloading: configure.html#preload-app
|
||||
|
||||
@ -134,9 +134,6 @@ class PasterServerApplication(PasterBaseApplication):
|
||||
self.load_config_from_file(default_config)
|
||||
|
||||
def load(self):
|
||||
if hasattr(self, "cfgfname"):
|
||||
return loadapp(self.cfgurl, relative_to=self.relpath, global_conf=self.gcfg)
|
||||
|
||||
return self.app
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user