部署脚本

This commit is contained in:
Kevin
2026-04-03 11:25:35 +08:00
parent be26d87075
commit ec3ebf54bb
2 changed files with 96 additions and 0 deletions

12
Caddyfile Normal file
View File

@@ -0,0 +1,12 @@
# Astro 静态构建目录:部署前执行 npm run build并把 root 改成服务器上 dist 的绝对路径。
# 示例:/var/www/HeguangtongkunLanding/dist
heguangtongkun.com {
redir https://www.heguangtongkun.com{uri} permanent
}
www.heguangtongkun.com {
root * /var/www/HeguangtongkunLanding/dist
encode gzip zstd
file_server
}