From 460e2bbb1dd6e2dfd519338c590aec7ab9830ecb Mon Sep 17 00:00:00 2001 From: VG Date: Fri, 28 Nov 2014 21:15:21 +0100 Subject: Fix wsgi application declaration (must be in top of file for bottle to work in wsgi) --- pasteme.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pasteme.py b/pasteme.py index b5cd308..03cdc23 100755 --- a/pasteme.py +++ b/pasteme.py @@ -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 -- cgit v1.2.3