feat(draws, config, deployment): 合并开奖结果/审核页,新增下注筛选并完善开注商配置
Some checks failed
lotteryadmin CI / build (push) Has been cancelled
Some checks failed
lotteryadmin CI / build (push) Has been cancelled
This commit is contained in:
@@ -15,14 +15,17 @@
|
||||
const path = require("path");
|
||||
|
||||
/** 改成服务器上的绝对路径,例如 /www/wwwroot/lottery-admin.cjdhr.top */
|
||||
const APP_CWD = path.resolve(__dirname);
|
||||
const DEPLOY_ROOT = path.resolve(__dirname);
|
||||
// deploy.sh uploads the standalone bundle to app/. Keep runtime and static assets
|
||||
// on the same build so Next.js chunk references cannot become mismatched.
|
||||
const APP_CWD = path.join(DEPLOY_ROOT, "app");
|
||||
|
||||
module.exports = {
|
||||
apps: [
|
||||
{
|
||||
name: "lotteryadmin",
|
||||
cwd: APP_CWD,
|
||||
script: ".next/standalone/server.js",
|
||||
script: "server.js",
|
||||
interpreter: "node",
|
||||
exec_mode: "fork",
|
||||
instances: 1,
|
||||
@@ -31,8 +34,8 @@ module.exports = {
|
||||
max_memory_restart: "1G",
|
||||
time: true,
|
||||
merge_logs: true,
|
||||
out_file: path.join(APP_CWD, "logs/pm2-out.log"),
|
||||
error_file: path.join(APP_CWD, "logs/pm2-error.log"),
|
||||
out_file: path.join(DEPLOY_ROOT, "logs/pm2-out.log"),
|
||||
error_file: path.join(DEPLOY_ROOT, "logs/pm2-error.log"),
|
||||
|
||||
env: {
|
||||
NODE_ENV: "production",
|
||||
@@ -41,7 +44,7 @@ module.exports = {
|
||||
},
|
||||
|
||||
// LOTTERY_API_UPSTREAM 只写在 .env,勿在此硬编码(会覆盖 .env 导致 API 502)
|
||||
env_file: path.join(APP_CWD, ".env"),
|
||||
env_file: path.join(DEPLOY_ROOT, ".env"),
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user