aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVG <vg@devys.org>2014-11-28 21:15:21 +0100
committerVG <vg@devys.org>2014-11-28 21:15:21 +0100
commit460e2bbb1dd6e2dfd519338c590aec7ab9830ecb (patch)
tree65a2ebdf6ae1b1735ee97177c58eb309adf919d0
parentfc9f8632da09763b54e25861dc6e1798091d0bba (diff)
downloadpasteme-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-xpasteme.py2
1 files changed, 1 insertions, 1 deletions
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