diff --git a/run.py b/run.py index fc04e5b..06e985f 100644 --- a/run.py +++ b/run.py @@ -854,7 +854,7 @@ async def html_index(request): @argh.arg('-t', '--type', choices=['stable', 'arm', 'testing-unstable', 'dev'], default="stable") -def main(path_to_analyseCI, ssl=False, keyfile_path="/etc/yunohost/certs/ci-apps.yunohost.org/key.pem", certfile_path="/etc/yunohost/certs/ci-apps.yunohost.org/crt.pem", type="stable", dont_minotor_apps_list=False, dont_monitor_git=False, no_monthly_jobs=False, port=4242): +def main(path_to_analyseCI, ssl=False, keyfile_path="/etc/yunohost/certs/ci-apps.yunohost.org/key.pem", certfile_path="/etc/yunohost/certs/ci-apps.yunohost.org/crt.pem", type="stable", dont_minotor_apps_list=False, dont_monitor_git=False, no_monthly_jobs=False, port=4242, debug=False): if not os.path.exists(path_to_analyseCI): print(f"Error: analyseCI script doesn't exist at '{path_to_analyseCI}'") sys.exit(1) @@ -877,13 +877,13 @@ def main(path_to_analyseCI, ssl=False, keyfile_path="/etc/yunohost/certs/ci-apps app.add_task(jobs_dispatcher()) if not ssl: - app.run('localhost', port=port, debug=True) + app.run('localhost', port=port, debug=debug) else: import ssl context = ssl.create_default_context(purpose=ssl.Purpose.CLIENT_AUTH) context.load_cert_chain(certfile_path, keyfile=keyfile_path) - app.run('0.0.0.0', port=port, ssl=context, debug=True) + app.run('0.0.0.0', port=port, ssl=context, debug=debug) if __name__ == "__main__":