diff --git a/git_hooks/post-receive b/git_hooks/post-receive index 36c8fdca..55a9ee71 100755 --- a/git_hooks/post-receive +++ b/git_hooks/post-receive @@ -8,4 +8,7 @@ # - 内部 = `npm run build && npm run start` # - 实际调用 `pnpm run build:start`(项目使用 pnpm) +# 准备生产环境变量(从 .env.production.example 复制 → .env.production) +cp -f .env.production.example .env.production + pnpm run build:start