This commit is contained in:
Piero Toffanin 2021-01-19 16:49:50 -05:00 committed by GitHub
parent 580887fcc6
commit 370ff7a37c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,7 +21,7 @@ parser.add_argument('--ssl', default=None, action="store_true",
parser.add_argument('--frontend-language-source', type=str, default="en", metavar="<language code>", parser.add_argument('--frontend-language-source', type=str, default="en", metavar="<language code>",
help='Set frontend default language - source (%(default)s)') help='Set frontend default language - source (%(default)s)')
parser.add_argument('--frontend-language-target', type=str, default="es", metavar="<language code>", parser.add_argument('--frontend-language-target', type=str, default="es", metavar="<language code>",
help='Set frontend xxxdefault language - target (%(default)s)') help='Set frontend default language - target (%(default)s)')
args = parser.parse_args() args = parser.parse_args()
@ -38,4 +38,4 @@ if __name__ == "__main__":
app.run(host=args.host, port=args.port) app.run(host=args.host, port=args.port)
else: else:
from waitress import serve from waitress import serve
serve(app, host=args.host, port=args.port, url_scheme='https' if args.ssl else 'http') serve(app, host=args.host, port=args.port, url_scheme='https' if args.ssl else 'http')