mirror of
https://github.com/EDCD/EDDN.git
synced 2025-04-20 18:47:39 +03:00
We still need to configure the gateway when running in wsgi mode!
This commit is contained in:
parent
f591d3a815
commit
13a651175d
@ -45,7 +45,7 @@ def configure():
|
||||
sender.bind(binding)
|
||||
|
||||
for schemaRef, schemaFile in Settings.GATEWAY_JSON_SCHEMAS.iteritems():
|
||||
validator.addSchemaResource(schemaRef, resource_string(__name__, schemaFile))
|
||||
validator.addSchemaResource(schemaRef, resource_string('eddn.Gateway', schemaFile))
|
||||
|
||||
|
||||
def push_message(string_message, topic):
|
||||
@ -211,12 +211,11 @@ class MalformedUploadError(Exception):
|
||||
|
||||
|
||||
def main():
|
||||
loadConfig()
|
||||
|
||||
configure()
|
||||
run(host='0.0.0.0', port=Settings.GATEWAY_HTTP_PORT, server='gevent')
|
||||
|
||||
|
||||
loadConfig()
|
||||
configure()
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user