feat: 脚本部署
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
"deploy": "./scripts/deploy.sh"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/node": "10.0.5",
|
||||
"@astrojs/node": "11.0.2",
|
||||
"@astrojs/solid-js": "^5.1.3",
|
||||
"astro": "^7.0.6",
|
||||
"dayjs": "^1.11.21",
|
||||
|
||||
21
pnpm-lock.yaml
generated
21
pnpm-lock.yaml
generated
@@ -9,8 +9,8 @@ importers:
|
||||
.:
|
||||
dependencies:
|
||||
'@astrojs/node':
|
||||
specifier: 10.0.5
|
||||
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))
|
||||
specifier: 11.0.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':
|
||||
specifier: ^5.1.3
|
||||
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':
|
||||
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':
|
||||
resolution: {integrity: sha512-Lje33Ittd8UQGgbIIWQvhPkj5X5c4b1sZnZWX3JQV/AWpfbuQGxVi2ONt6+ScydcwfR4egilslEWyczMclrJ1g==}
|
||||
|
||||
'@astrojs/node@10.0.5':
|
||||
resolution: {integrity: sha512-rgZiU9nD7zmM3fdmOVuobcNHAyXWx2HXXDLTuxjVCTQ+QmHmL5zkZZhNIL5NjlQtDRAU1i5fVaXp7nAKdET30w==}
|
||||
'@astrojs/node@11.0.2':
|
||||
resolution: {integrity: sha512-/ijULxT+A5Cm8wSwWZ2vgqfim1b05D6B8n/a9l6MMA4FCotIH73g7fL7y76XojKXpTe75FVvQH92OxsMqea9kQ==}
|
||||
peerDependencies:
|
||||
astro: ^6.0.0
|
||||
astro: ^7.0.0
|
||||
|
||||
'@astrojs/prism@4.0.2':
|
||||
resolution: {integrity: sha512-KTivpmnz6lDsC6o9H4+DNm2SrE/GHzw8cNAvEJwAvUT+eoaEnn/4NtbDNfRRaxaJHdp15gf+tfHAWiXR4wB3BA==}
|
||||
@@ -2344,10 +2341,6 @@ snapshots:
|
||||
smol-toml: 1.7.0
|
||||
unified: 11.0.5
|
||||
|
||||
'@astrojs/internal-helpers@0.8.0':
|
||||
dependencies:
|
||||
picomatch: 4.0.5
|
||||
|
||||
'@astrojs/markdown-satteri@0.3.3':
|
||||
dependencies:
|
||||
'@astrojs/internal-helpers': 0.10.1
|
||||
@@ -2355,9 +2348,9 @@ snapshots:
|
||||
github-slugger: 2.0.0
|
||||
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:
|
||||
'@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)
|
||||
send: 1.2.1
|
||||
server-destroy: 1.0.1
|
||||
|
||||
@@ -5,7 +5,7 @@ PROJECT_ROOT=$(cd -- "$(dirname "${BASH_SOURCE[0]}")/.." &> /dev/null && pwd)
|
||||
DOCKERFILE_PATH=./scripts/Dockerfile
|
||||
IMAGE_NAME=blog
|
||||
IMAGE_FILE_NAME=$IMAGE_NAME.tar.gz
|
||||
REMOTE_SERVER=02
|
||||
REMOTE_SERVER=01
|
||||
REMOTE_PATH=/srv/docker/nginx/www
|
||||
DOCKER_NETWORK=docker_app-bridge
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
import Layout from "@/layouts/Layout.astro";
|
||||
|
||||
import { http } from "@/lib/request";
|
||||
import {formatDatetime} from "@/lib/format.ts";
|
||||
|
||||
interface Post {
|
||||
title: string;
|
||||
@@ -28,7 +29,7 @@ const {list} = await http.get<ApiPageResponse<Post>>("post");
|
||||
<div class="post-content">
|
||||
<h2>{post.title}</h2>
|
||||
<p class="summary">{post.summary}</p>
|
||||
<time>{post.published_at}</time>
|
||||
<div>{formatDatetime(post.published_at,'YYYY 年 MM 月 DD 日')}</div>
|
||||
</div>
|
||||
</a>
|
||||
))
|
||||
|
||||
Reference in New Issue
Block a user