diff options
author | mjfernez <mjfernez@gmail.com> | 2021-06-07 19:47:59 -0400 |
---|---|---|
committer | mjfernez <mjfernez@gmail.com> | 2021-06-07 19:48:59 -0400 |
commit | a4ef784946330abc6aed8e03accdf7541881df0f (patch) | |
tree | f0f191554f09e92feedae1b06bbb013c801c2b25 /server.py | |
parent | e36167843d8b23c057d244d38a7f96b584db2912 (diff) | |
download | ezcms-a4ef784946330abc6aed8e03accdf7541881df0f.tar.gz |
wsgi compatibility
Moves the setup() function outside of main so the app is setup before a
wrapper runs it. Also fixes deployment tutorial in the README
Diffstat (limited to 'server.py')
-rw-r--r-- | server.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -192,7 +192,7 @@ def setup(): app.config.update({'DOMAIN': siteconfig.DOMAIN}) app.config.update({'HOME_TITLE': siteconfig.HOME_TITLE}) - +# Need to come first to be compatible with wsgi +setup() if __name__ == '__main__': - setup() - app.run(host=siteconfig.HOST, port=siteconfig.PORT) + app.run() |