From cd6c7ce7fa8ed7c646d1ee1f09b399ae76390ba3 Mon Sep 17 00:00:00 2001 From: Bai Date: Wed, 11 Aug 2021 14:26:23 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20jms=E8=84=9A=E6=9C=AC=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?collectstatic=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jms | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jms b/jms index eb5314871..83ad10cba 100755 --- a/jms +++ b/jms @@ -125,7 +125,7 @@ if __name__ == '__main__': ) parser.add_argument( 'action', type=str, - choices=("start", "stop", "restart", "status", "upgrade_db"), + choices=("start", "stop", "restart", "status", "upgrade_db", "collect_static"), help="Action to run" ) parser.add_argument( @@ -142,6 +142,8 @@ if __name__ == '__main__': action = args.action if action == "upgrade_db": upgrade_db() + elif action == "collect_static": + collect_static() else: services = args.services if isinstance(args.services, list) else [args.services] if action == 'start' and {'all', 'web'} & set(services):