We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 965ddd3 commit f8dc0d7Copy full SHA for f8dc0d7
backend/pastee/pastee.py
@@ -396,6 +396,8 @@ def main():
396
parser.add_option('--test', dest='test',
397
action='store_true', default=False,
398
help='Test mode: created keys will be removed on shutdown')
399
+ parser.add_option('--wsgi-server', dest='wsgi_server', default='wsgiref',
400
+ help='WSGI server to use with the Bottle framework')
401
402
# Parse commandline options.
403
(options, args) = parser.parse_args()
@@ -443,7 +445,7 @@ def main():
443
445
# We're the child. Run the server.
444
446
try:
447
kwargs['port'] += i # ports must be different for children
- bottle.run(server='tornado', **kwargs)
448
+ bottle.run(server=options.wsgi_server, **kwargs)
449
except select.error, e:
450
num, msg = e
451
if num == 4: # 'Interrupted system call'
0 commit comments