feat: 脚本部署

This commit is contained in:
2026-07-06 23:58:49 +08:00
parent 59664d139d
commit 3c9ef565b3
4 changed files with 11 additions and 17 deletions

View File

@@ -10,7 +10,7 @@
"deploy": "./scripts/deploy.sh" "deploy": "./scripts/deploy.sh"
}, },
"dependencies": { "dependencies": {
"@astrojs/node": "10.0.5", "@astrojs/node": "11.0.2",
"@astrojs/solid-js": "^5.1.3", "@astrojs/solid-js": "^5.1.3",
"astro": "^7.0.6", "astro": "^7.0.6",
"dayjs": "^1.11.21", "dayjs": "^1.11.21",

21
pnpm-lock.yaml generated
View File

@@ -9,8 +9,8 @@ importers:
.: .:
dependencies: dependencies:
'@astrojs/node': '@astrojs/node':
specifier: 10.0.5 specifier: 11.0.2
version: 10.0.5(astro@7.0.6(@emnapi/core@1.11.1)(@emnapi/runtime@1.11.2)(@types/node@26.1.0)(rollup@4.62.2)) version: 11.0.2(astro@7.0.6(@emnapi/core@1.11.1)(@emnapi/runtime@1.11.2)(@types/node@26.1.0)(rollup@4.62.2))
'@astrojs/solid-js': '@astrojs/solid-js':
specifier: ^5.1.3 specifier: ^5.1.3
version: 5.1.3(@types/node@26.1.0)(lightningcss@1.32.0)(solid-js@1.9.14) version: 5.1.3(@types/node@26.1.0)(lightningcss@1.32.0)(solid-js@1.9.14)
@@ -128,16 +128,13 @@ packages:
'@astrojs/internal-helpers@0.10.1': '@astrojs/internal-helpers@0.10.1':
resolution: {integrity: sha512-5phcroT/vmOOrYuuAxtkbPixy5hePtlz9i8K4OeDv3dNK6/UQRuXPOSRTxIOBbUY5Sonw2UaxjbuVc43Mcir6Q==} resolution: {integrity: sha512-5phcroT/vmOOrYuuAxtkbPixy5hePtlz9i8K4OeDv3dNK6/UQRuXPOSRTxIOBbUY5Sonw2UaxjbuVc43Mcir6Q==}
'@astrojs/internal-helpers@0.8.0':
resolution: {integrity: sha512-J56GrhEiV+4dmrGLPNOl2pZjpHXAndWVyiVDYGDuw6MWKpBSEMLdFxHzeM/6sqaknw9M+HFfHZAcvi3OfT3D/w==}
'@astrojs/markdown-satteri@0.3.3': '@astrojs/markdown-satteri@0.3.3':
resolution: {integrity: sha512-Lje33Ittd8UQGgbIIWQvhPkj5X5c4b1sZnZWX3JQV/AWpfbuQGxVi2ONt6+ScydcwfR4egilslEWyczMclrJ1g==} resolution: {integrity: sha512-Lje33Ittd8UQGgbIIWQvhPkj5X5c4b1sZnZWX3JQV/AWpfbuQGxVi2ONt6+ScydcwfR4egilslEWyczMclrJ1g==}
'@astrojs/node@10.0.5': '@astrojs/node@11.0.2':
resolution: {integrity: sha512-rgZiU9nD7zmM3fdmOVuobcNHAyXWx2HXXDLTuxjVCTQ+QmHmL5zkZZhNIL5NjlQtDRAU1i5fVaXp7nAKdET30w==} resolution: {integrity: sha512-/ijULxT+A5Cm8wSwWZ2vgqfim1b05D6B8n/a9l6MMA4FCotIH73g7fL7y76XojKXpTe75FVvQH92OxsMqea9kQ==}
peerDependencies: peerDependencies:
astro: ^6.0.0 astro: ^7.0.0
'@astrojs/prism@4.0.2': '@astrojs/prism@4.0.2':
resolution: {integrity: sha512-KTivpmnz6lDsC6o9H4+DNm2SrE/GHzw8cNAvEJwAvUT+eoaEnn/4NtbDNfRRaxaJHdp15gf+tfHAWiXR4wB3BA==} resolution: {integrity: sha512-KTivpmnz6lDsC6o9H4+DNm2SrE/GHzw8cNAvEJwAvUT+eoaEnn/4NtbDNfRRaxaJHdp15gf+tfHAWiXR4wB3BA==}
@@ -2344,10 +2341,6 @@ snapshots:
smol-toml: 1.7.0 smol-toml: 1.7.0
unified: 11.0.5 unified: 11.0.5
'@astrojs/internal-helpers@0.8.0':
dependencies:
picomatch: 4.0.5
'@astrojs/markdown-satteri@0.3.3': '@astrojs/markdown-satteri@0.3.3':
dependencies: dependencies:
'@astrojs/internal-helpers': 0.10.1 '@astrojs/internal-helpers': 0.10.1
@@ -2355,9 +2348,9 @@ snapshots:
github-slugger: 2.0.0 github-slugger: 2.0.0
satteri: 0.9.4 satteri: 0.9.4
'@astrojs/node@10.0.5(astro@7.0.6(@emnapi/core@1.11.1)(@emnapi/runtime@1.11.2)(@types/node@26.1.0)(rollup@4.62.2))': '@astrojs/node@11.0.2(astro@7.0.6(@emnapi/core@1.11.1)(@emnapi/runtime@1.11.2)(@types/node@26.1.0)(rollup@4.62.2))':
dependencies: dependencies:
'@astrojs/internal-helpers': 0.8.0 '@astrojs/internal-helpers': 0.10.1
astro: 7.0.6(@emnapi/core@1.11.1)(@emnapi/runtime@1.11.2)(@types/node@26.1.0)(rollup@4.62.2) astro: 7.0.6(@emnapi/core@1.11.1)(@emnapi/runtime@1.11.2)(@types/node@26.1.0)(rollup@4.62.2)
send: 1.2.1 send: 1.2.1
server-destroy: 1.0.1 server-destroy: 1.0.1

View File

@@ -5,7 +5,7 @@ PROJECT_ROOT=$(cd -- "$(dirname "${BASH_SOURCE[0]}")/.." &> /dev/null && pwd)
DOCKERFILE_PATH=./scripts/Dockerfile DOCKERFILE_PATH=./scripts/Dockerfile
IMAGE_NAME=blog IMAGE_NAME=blog
IMAGE_FILE_NAME=$IMAGE_NAME.tar.gz IMAGE_FILE_NAME=$IMAGE_NAME.tar.gz
REMOTE_SERVER=02 REMOTE_SERVER=01
REMOTE_PATH=/srv/docker/nginx/www REMOTE_PATH=/srv/docker/nginx/www
DOCKER_NETWORK=docker_app-bridge DOCKER_NETWORK=docker_app-bridge

View File

@@ -2,6 +2,7 @@
import Layout from "@/layouts/Layout.astro"; import Layout from "@/layouts/Layout.astro";
import { http } from "@/lib/request"; import { http } from "@/lib/request";
import {formatDatetime} from "@/lib/format.ts";
interface Post { interface Post {
title: string; title: string;
@@ -28,7 +29,7 @@ const {list} = await http.get<ApiPageResponse<Post>>("post");
<div class="post-content"> <div class="post-content">
<h2>{post.title}</h2> <h2>{post.title}</h2>
<p class="summary">{post.summary}</p> <p class="summary">{post.summary}</p>
<time>{post.published_at}</time> <div>{formatDatetime(post.published_at,'YYYY 年 MM 月 DD 日')}</div>
</div> </div>
</a> </a>
)) ))