Files
dukang/deploy/ecosystem.staging.config.cjs
T
jacy eeee55e215 fix(admin): 后台校验文件避免 301,并让搜索引擎读到 noindex
serve -s 会把 .html 301 去后缀,百度站长验证失败;同时放开 robots 抓取,避免旧标题一直留在 SERP。
2026-09-01 09:11:43 +08:00

56 lines
1.3 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/** PM2 ecosystem — 杜康好客 Staging(同机双栈,端口 81908194 */
const APP_ROOT = process.env.APP_ROOT || '/opt/dukang-staging';
module.exports = {
apps: [
{
name: 'dukang-stg-api',
cwd: `${APP_ROOT}/server/dukang-api`,
script: 'dist/main.js',
instances: 1,
exec_mode: 'fork',
env: {
NODE_ENV: 'production',
APP_ENV: 'staging',
PORT: 8190,
},
},
{
name: 'dukang-stg-h5-user',
cwd: `${APP_ROOT}/apps/mini-user`,
script: 'npx',
args: 'serve dist -l 8191 -c serve.json',
interpreter: 'none',
instances: 1,
exec_mode: 'fork',
},
{
name: 'dukang-stg-h5-shop',
cwd: `${APP_ROOT}/apps/h5-shop`,
script: 'npx',
args: 'serve -s dist -l 8192',
interpreter: 'none',
instances: 1,
exec_mode: 'fork',
},
{
name: 'dukang-stg-h5-partner',
cwd: `${APP_ROOT}/apps/h5-partner`,
script: 'npx',
args: 'serve -s dist -l 8193',
interpreter: 'none',
instances: 1,
exec_mode: 'fork',
},
{
name: 'dukang-stg-admin-web',
cwd: `${APP_ROOT}/apps/admin-web`,
script: 'npx',
args: 'serve dist -l 8194 -c serve.json',
interpreter: 'none',
instances: 1,
exec_mode: 'fork',
},
],
};