mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Load wsgi apps after reading the configuration.
This commit is contained in:
parent
793323789d
commit
2c73a41ab7
@ -20,12 +20,11 @@ class WSGIApplication(Application):
|
|||||||
self.app_uri = args[0]
|
self.app_uri = args[0]
|
||||||
|
|
||||||
sys.path.insert(0, os.getcwd())
|
sys.path.insert(0, os.getcwd())
|
||||||
|
|
||||||
|
def load(self):
|
||||||
try:
|
try:
|
||||||
self.load()
|
return util.import_app(self.app_uri)
|
||||||
except:
|
except:
|
||||||
print "Failed to import application: %s" % self.app_uri
|
print "Failed to import application: %s" % self.app_uri
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
def load(self):
|
|
||||||
return util.import_app(self.app_uri)
|
|
||||||
Loading…
x
Reference in New Issue
Block a user