diff options
author | VG <vg@devys.org> | 2014-11-28 21:15:21 +0100 |
---|---|---|
committer | VG <vg@devys.org> | 2014-11-28 21:15:21 +0100 |
commit | 460e2bbb1dd6e2dfd519338c590aec7ab9830ecb (patch) | |
tree | 65a2ebdf6ae1b1735ee97177c58eb309adf919d0 | |
parent | fc9f8632da09763b54e25861dc6e1798091d0bba (diff) | |
download | pasteme-460e2bbb1dd6e2dfd519338c590aec7ab9830ecb.tar.gz pasteme-460e2bbb1dd6e2dfd519338c590aec7ab9830ecb.tar.bz2 pasteme-460e2bbb1dd6e2dfd519338c590aec7ab9830ecb.zip |
Fix wsgi application declaration (must be in top of file for bottle to work in wsgi)
-rwxr-xr-x | pasteme.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -8,6 +8,7 @@ import identigen import config from pathlib import Path +application = bottle.default_app() # application used for wsgi mode pathbase = Path(config.pastedir) pygment_formater = pygments.formatters.HtmlFormatter() @@ -69,4 +70,3 @@ if __name__ == '__main__': bottle.run(host='0.0.0.0', port=8080, debug=True, reloader=True) else: print('I: Starting application as a wsgi application') - application = bottle.default_app() # application used for wsgi mode |