diff options
author | crupest <crupest@outlook.com> | 2023-12-11 15:02:08 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2024-03-25 22:25:21 +0800 |
commit | 77c5f0d98f8318c8ec99fee64591b0701e270224 (patch) | |
tree | 56d7f83e4d4d736890d8d3999379a459b5d96ccf | |
parent | 52566293e75055513d397bf3ad64af969cd1f185 (diff) | |
download | crupest-77c5f0d98f8318c8ec99fee64591b0701e270224.tar.gz crupest-77c5f0d98f8318c8ec99fee64591b0701e270224.tar.bz2 crupest-77c5f0d98f8318c8ec99fee64591b0701e270224.zip |
tools(aio): move aio and related scripts.
-rwxr-xr-x | aio | 2 | ||||
-rw-r--r-- | tools/aio/.gitignore (renamed from tool/.gitignore) | 0 | ||||
-rwxr-xr-x | tools/aio/aio | 2 | ||||
-rwxr-xr-x | tools/aio/aio.py (renamed from tool/aio.py) | 0 | ||||
-rw-r--r-- | tools/aio/modules/backup.py (renamed from tool/modules/backup.py) | 0 | ||||
-rw-r--r-- | tools/aio/modules/check.py (renamed from tool/modules/check.py) | 0 | ||||
-rw-r--r-- | tools/aio/modules/config.py (renamed from tool/modules/config.py) | 0 | ||||
-rw-r--r-- | tools/aio/modules/dns.py (renamed from tool/modules/dns.py) | 0 | ||||
-rw-r--r-- | tools/aio/modules/download_tools.py (renamed from tool/modules/download_tools.py) | 0 | ||||
-rw-r--r-- | tools/aio/modules/helper.py (renamed from tool/modules/helper.py) | 0 | ||||
-rw-r--r-- | tools/aio/modules/install_docker.py (renamed from tool/modules/install_docker.py) | 0 | ||||
-rwxr-xr-x | tools/aio/modules/nginx.py (renamed from tool/modules/nginx.py) | 0 | ||||
-rw-r--r-- | tools/aio/modules/path.py (renamed from tool/modules/path.py) | 2 | ||||
-rw-r--r-- | tools/aio/modules/setup.py (renamed from tool/modules/setup.py) | 0 | ||||
-rw-r--r-- | tools/aio/modules/template.py (renamed from tool/modules/template.py) | 0 | ||||
-rw-r--r-- | tools/aio/modules/test.py (renamed from tool/modules/test.py) | 0 | ||||
-rwxr-xr-x | tools/aio/update-blog | 2 | ||||
-rwxr-xr-x | tools/aio/www-dev (renamed from www-dev) | 5 | ||||
-rwxr-xr-x | update-blog | 2 |
19 files changed, 10 insertions, 5 deletions
@@ -1,2 +0,0 @@ -#! /usr/bin/env sh -exec python3 "$(dirname "$0")/tool/aio.py" "$@" diff --git a/tool/.gitignore b/tools/aio/.gitignore index 229355c..229355c 100644 --- a/tool/.gitignore +++ b/tools/aio/.gitignore diff --git a/tools/aio/aio b/tools/aio/aio new file mode 100755 index 0000000..f74877a --- /dev/null +++ b/tools/aio/aio @@ -0,0 +1,2 @@ +#! /usr/bin/env sh +exec python3 "$(dirname "$0")/aio.py" "$@" diff --git a/tool/aio.py b/tools/aio/aio.py index 970c389..970c389 100755 --- a/tool/aio.py +++ b/tools/aio/aio.py diff --git a/tool/modules/backup.py b/tools/aio/modules/backup.py index 7921d0d..7921d0d 100644 --- a/tool/modules/backup.py +++ b/tools/aio/modules/backup.py diff --git a/tool/modules/check.py b/tools/aio/modules/check.py index 2a082f6..2a082f6 100644 --- a/tool/modules/check.py +++ b/tools/aio/modules/check.py diff --git a/tool/modules/config.py b/tools/aio/modules/config.py index 40b20d1..40b20d1 100644 --- a/tool/modules/config.py +++ b/tools/aio/modules/config.py diff --git a/tool/modules/dns.py b/tools/aio/modules/dns.py index 5006d5f..5006d5f 100644 --- a/tool/modules/dns.py +++ b/tools/aio/modules/dns.py diff --git a/tool/modules/download_tools.py b/tools/aio/modules/download_tools.py index beb06d4..beb06d4 100644 --- a/tool/modules/download_tools.py +++ b/tools/aio/modules/download_tools.py diff --git a/tool/modules/helper.py b/tools/aio/modules/helper.py index f8fe34a..f8fe34a 100644 --- a/tool/modules/helper.py +++ b/tools/aio/modules/helper.py diff --git a/tool/modules/install_docker.py b/tools/aio/modules/install_docker.py index ac50290..ac50290 100644 --- a/tool/modules/install_docker.py +++ b/tools/aio/modules/install_docker.py diff --git a/tool/modules/nginx.py b/tools/aio/modules/nginx.py index f69c5df..f69c5df 100755 --- a/tool/modules/nginx.py +++ b/tools/aio/modules/nginx.py diff --git a/tool/modules/path.py b/tools/aio/modules/path.py index c978284..b3b12b9 100644 --- a/tool/modules/path.py +++ b/tools/aio/modules/path.py @@ -2,7 +2,7 @@ import os import os.path script_dir = os.path.relpath(os.path.dirname(__file__)) -project_dir = os.path.normpath(os.path.join(script_dir, "../../")) +project_dir = os.path.normpath(os.path.join(script_dir, "../../../")) project_abs_path = os.path.abspath(project_dir) template_dir = os.path.join(project_dir, "template") nginx_template_dir = os.path.join(template_dir, "nginx") diff --git a/tool/modules/setup.py b/tools/aio/modules/setup.py index 4e91302..4e91302 100644 --- a/tool/modules/setup.py +++ b/tools/aio/modules/setup.py diff --git a/tool/modules/template.py b/tools/aio/modules/template.py index 9747af1..9747af1 100644 --- a/tool/modules/template.py +++ b/tools/aio/modules/template.py diff --git a/tool/modules/test.py b/tools/aio/modules/test.py index d6eb778..d6eb778 100644 --- a/tool/modules/test.py +++ b/tools/aio/modules/test.py diff --git a/tools/aio/update-blog b/tools/aio/update-blog new file mode 100755 index 0000000..e4a25ab --- /dev/null +++ b/tools/aio/update-blog @@ -0,0 +1,2 @@ +#! /usr/bin/env sh +exec python3 "$(dirname "$0")/aio.py" update-blog "$@" diff --git a/www-dev b/tools/aio/www-dev index aaaf5ff..f56d679 100755 --- a/www-dev +++ b/tools/aio/www-dev @@ -1,3 +1,8 @@ #! /usr/bin/env sh + +set -e + +cd "$(dirname "$0")/../.." + exec tmux new-session 'cd docker/crupest-nginx/sites/www && pnpm start' \; \ split-window -h 'cd docker/crupest-api/CrupestApi/CrupestApi && dotnet run --launch-profile dev' diff --git a/update-blog b/update-blog deleted file mode 100755 index ecaf761..0000000 --- a/update-blog +++ /dev/null @@ -1,2 +0,0 @@ -#! /usr/bin/env sh -exec python3 "$(dirname "$0")/tool/aio.py" update-blog "$@" |