feat(hall): 支持按行选择开注商与选号种类并优化下注表格
Some checks failed
lotteryfront CI / build (push) Has been cancelled

This commit is contained in:
2026-07-10 17:04:54 +08:00
parent 960b10e02a
commit 99d49f457f
11 changed files with 336 additions and 219 deletions

View File

@@ -16,14 +16,17 @@
const path = require("path");
/** 改成服务器上的绝对路径,例如 /www/wwwroot/lottery.yourdomain.com */
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: "lotteryfront",
cwd: APP_CWD,
script: ".next/standalone/server.js",
script: "server.js",
interpreter: "node",
exec_mode: "fork",
instances: 1,
@@ -32,8 +35,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",
@@ -42,7 +45,7 @@ module.exports = {
},
// LOTTERY_API_UPSTREAM、NEXT_PUBLIC_* 写在 .env勿在此硬编码 LOTTERY_API_UPSTREAM
env_file: path.join(APP_CWD, ".env"),
env_file: path.join(DEPLOY_ROOT, ".env"),
},
],
};