From a1e7fe78575c34dc8f7613dfdf2907f366d7386d Mon Sep 17 00:00:00 2001 From: ActivePeter <1020401660@qq.com> Date: Fri, 14 Jun 2024 03:04:34 +0800 Subject: [PATCH] fix: missing generate docker-compose in ui --- pa_note_front/script/docker_dev_2gencompose.py | 8 +++++++- script/files/.gitignore | 2 +- script/files/authority_config.json | 5 ----- 3 files changed, 8 insertions(+), 7 deletions(-) delete mode 100644 script/files/authority_config.json diff --git a/pa_note_front/script/docker_dev_2gencompose.py b/pa_note_front/script/docker_dev_2gencompose.py index 7e457f2..e7da061 100644 --- a/pa_note_front/script/docker_dev_2gencompose.py +++ b/pa_note_front/script/docker_dev_2gencompose.py @@ -41,4 +41,10 @@ def os_system(command): volumes: - .:/usr/src/app command: bash docker_run_dev_entry.sh -""" \ No newline at end of file +""" + +with open("docker_run_dev_entry.sh","w") as f: + f.write(ENTRY) + +with open("docker-compose.yml","w") as f: + f.write(COMPOSE) diff --git a/script/files/.gitignore b/script/files/.gitignore index 3bff9d1..3ceb874 100644 --- a/script/files/.gitignore +++ b/script/files/.gitignore @@ -1 +1 @@ -authority_config.json \ No newline at end of file +#authority_config.json \ No newline at end of file diff --git a/script/files/authority_config.json b/script/files/authority_config.json deleted file mode 100644 index 88c4265..0000000 --- a/script/files/authority_config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "id":"test_id", - "pw":"test_pw", - "token_secret": "hello world" -} \ No newline at end of file