From 783171729f2cadd8062292fb6f9ecc8d5fc497fa Mon Sep 17 00:00:00 2001 From: rr- Date: Sat, 21 Jan 2017 00:08:55 +0100 Subject: [PATCH] server: remove unneeded waitress wrapper --- server/host-waitress | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100755 server/host-waitress diff --git a/server/host-waitress b/server/host-waitress deleted file mode 100755 index ce82430..0000000 --- a/server/host-waitress +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/env python3 - -''' -Script facade for direct execution with waitress WSGI server. -Note that szurubooru can be also run using ``python -m szurubooru``, when in -the repository's root directory. -''' - -import argparse -import os.path -import sys -import waitress -from szurubooru.facade import app - -def main(): - parser = argparse.ArgumentParser('Starts szurubooru using waitress.') - parser.add_argument( - '-p', '--port', type=int, help='port to listen on', default=6666) - parser.add_argument('--host', help='IP to listen on', default='0.0.0.0') - args = parser.parse_args() - - waitress.serve(app, host=args.host, port=args.port) - -if __name__ == '__main__': - main()