chore(hooks): copy env example to production env in post-receive
Add preparation step for production environment variables by copying .env.production.example to .env.production before running build:start, ensuring required environment variables are available on deployment.
This commit is contained in:
@@ -8,4 +8,7 @@
|
|||||||
# - 内部 = `npm run build && npm run start`
|
# - 内部 = `npm run build && npm run start`
|
||||||
# - 实际调用 `pnpm run build:start`(项目使用 pnpm)
|
# - 实际调用 `pnpm run build:start`(项目使用 pnpm)
|
||||||
|
|
||||||
|
# 准备生产环境变量(从 .env.production.example 复制 → .env.production)
|
||||||
|
cp -f .env.production.example .env.production
|
||||||
|
|
||||||
pnpm run build:start
|
pnpm run build:start
|
||||||
|
|||||||
Reference in New Issue
Block a user