From 8b65eb8bcdc78ff12033f9f57e5265d2a5382173 Mon Sep 17 00:00:00 2001 From: Yuki Sawa Date: Fri, 24 Nov 2023 21:50:24 -0800 Subject: [PATCH] clean --- backend/main.py | 22 +--------------------- frontend/src/App.less | 3 --- 2 files changed, 1 insertion(+), 24 deletions(-) delete mode 100644 frontend/src/App.less diff --git a/backend/main.py b/backend/main.py index 0b97eb2..29fb17f 100644 --- a/backend/main.py +++ b/backend/main.py @@ -7,32 +7,12 @@ def handler(event, context): - # try: - # pprint(os.listdir("/opt")) - # print('lib') - # # pprint(os.listdir("/opt/lib")) - # # print('lib64') - # # pprint(os.listdir("/opt/lib64")) - # except Exception as e: - # print(e) - - # rp = subprocess.run(["ldd", "--version"], stdout=subprocess.PIPE, stderr=subprocess.PIPE) - # res = { - # "out": rp.stdout.decode(), - # "err": rp.stderr.decode(), - # "code": rp.returncode, - # } - # pprint(res["out"]) - # pprint(res["err"]) event = init_api_event(event) u = str(uuid.uuid4()) cmd1 = "/opt/envoy" cmd2 = "/usr/local/bin/envoy" - if os.path.isfile(cmd2): - cmd = cmd2 - else: - cmd = cmd1 + cmd = cmd2 if os.path.isfile(cmd2) else cmd1 write_to = f"/tmp/{u}/conf.yaml" read_from = f"/tmp/{u}" diff --git a/frontend/src/App.less b/frontend/src/App.less deleted file mode 100644 index f3123b6..0000000 --- a/frontend/src/App.less +++ /dev/null @@ -1,3 +0,0 @@ -// // @import '~antd/dist/antd.less'; -// @import "~antd/dist/antd.dark.less"; // Introduce the official dark less style entry file -// @import "~antd/dist/antd.compact.less"; // Introduce the official compact less style entry file