{"id":109084,"date":"2026-09-23T10:08:57","date_gmt":"2026-09-23T02:08:57","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/109084.html"},"modified":"2026-09-23T10:08:57","modified_gmt":"2026-09-23T02:08:57","slug":"redwood-%e8%87%aa%e6%89%98%e7%ae%a1%ef%bc%88serverful%ef%bc%89%e9%83%a8%e7%bd%b2%e5%ae%9e%e6%88%98%ef%bc%9a%e4%bd%bf%e7%94%a8-pm2-%e4%b8%8e-nginx-%e5%9c%a8-linux-%e6%9c%8d%e5%8a%a1%e5%99%a8%e4%b8%8a","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/109084.html","title":{"rendered":"Redwood \u81ea\u6258\u7ba1\uff08Serverful\uff09\u90e8\u7f72\u5b9e\u6218\uff1a\u4f7f\u7528 PM2 \u4e0e Nginx \u5728 Linux \u670d\u52a1\u5668\u4e0a\u8fd0\u884c\u5b8c\u6574\u5e94\u7528"},"content":{"rendered":"<ul class=\"gcb-tag-list\">\n<li><span class=\"gcb-tag\">\u540e\u7aef<\/span><\/li>\n<li><span class=\"gcb-tag\">\u524d\u7aef<\/span><\/li>\n<li><span class=\"gcb-tag\">Web\u6846\u67b6<\/span><\/li>\n<li><span class=\"gcb-tag\">\u5f00\u53d1\u5de5\u5177<\/span><\/li>\n<\/ul>\n<h3 class=\"gcb-project-title\">\u3010\u514d\u8d39\u4e0b\u8f7d\u94fe\u63a5\u3011redwood<\/h3>\n<p class=\"gcb-project-desc\">RedwoodGraphQL<\/p>\n<p>    <span class=\"gcb-project-addr-label\">\u9879\u76ee\u5730\u5740&#xff1a;<\/span><br \/>\n    <span class=\"gcb-project-addr-link\">https:\/\/gitcode.com\/gh_mirrors\/re\/redwood<\/span> <\/p>\n<p>  <span class=\"gcb-project-btn\"> <span class=\"gcb-project-btn-main\">\u70b9\u51fb\u67e5\u770b<\/span> <span class=\"gcb-project-btn-sub\">\u514d\u8d39\u4e0b\u8f7d<\/span> <\/span> <\/p>\n<p>\u672c\u6307\u5357\u57fa\u4e8e Redwood \u5b98\u65b9 4.x \u7248\u672c\u6587\u6863\u4e2d\u7684\u300aSelf-hosting Redwood (Serverful)\u300b\u624b\u518c&#xff0c;\u8bb2\u89e3\u5982\u4f55\u4ee5\u4f20\u7edf&#034;\u670d\u52a1\u5668\u6258\u7ba1&#034;&#xff08;Serverful&#xff09;\u65b9\u5f0f&#xff0c;\u5728\u81ea\u6709 Linux \u670d\u52a1\u5668\u4e0a\u901a\u8fc7 PM2 \u8fdb\u7a0b\u5b88\u62a4\u4e0e Nginx \u53cd\u5411\u4ee3\u7406&#xff0c;\u5c06\u4e00\u4e2a\u5b8c\u6574\u7684 Redwood \u5e94\u7528&#xff08;Web \u7aef &#043; API \u7aef &#043; Postgres \u6570\u636e\u5e93&#xff09;\u90e8\u7f72\u4e0a\u7ebf\u3002\u8bfb\u5b8c\u672c\u6587&#xff0c;\u4f60\u5c06\u638c\u63e1\u4ece\u5e94\u7528\u914d\u7f6e\u3001\u670d\u52a1\u5668\u73af\u5883\u51c6\u5907\u3001Nginx \u7ad9\u70b9\u914d\u7f6e\u3001PM2 \u8fdb\u7a0b\u7ba1\u7406\u5230\u4e00\u952e\u53d1\u5e03\u4e0e\u6570\u636e\u5e93\u8fc1\u79fb\u7684\u5b8c\u6574 Serverful \u90e8\u7f72\u94fe\u8def&#xff0c;\u5e76\u7406\u89e3 yarn rw serve \u4e0e apiUrl \u5728\u5176\u4e2d\u7684\u5e95\u5c42\u4f5c\u7528\u3002<\/p>\n<p>\u8bf4\u660e&#xff1a;\u672c\u6587\u4e3b\u4f53\u5bf9\u5e94\u4ed3\u5e93\u4e2d\u7684 self-hosting-redwood.md&#xff08;4.x \u7248\u672c&#xff09;&#xff0c;\u5e76\u8f85\u4ee5 Baremetal \u90e8\u7f72\u6587\u6863\u3001CLI \u547d\u4ee4\u53c2\u8003 \u53ca serve \u547d\u4ee4\u6e90\u7801 \u8fdb\u884c\u7eb5\u6df1\u4f50\u8bc1\u3002<\/p>\n<h3>\u4e00\u3001\u4e3a\u4ec0\u4e48\u9700\u8981 Serverful \u81ea\u6258\u7ba1<\/h3>\n<p>Redwood \u9ed8\u8ba4\u9762\u5411 Serverless \u67b6\u6784&#xff08;\u5982 Netlify\u3001Vercel \u4e0a\u7684\u51fd\u6570\u5f0f\u90e8\u7f72&#xff09;&#xff0c;\u4f46\u5e76\u4e0d\u662f\u6240\u6709\u56e2\u961f\u90fd\u559c\u6b22 Serverless \u7684\u7ea6\u675f\u3002\u5982\u679c\u4f60\u5e0c\u671b\u62e5\u6709\u4f20\u7edf\u3001\u53ef\u9884\u671f\u3001\u5b8c\u5168\u53ef\u63a7\u7684\u90e8\u7f72\u5f62\u6001\u2014\u2014\u628a\u4ee3\u7801\u90e8\u7f72\u5230\u81ea\u5df1\u7684 VPS \u6216\u7269\u7406\u670d\u52a1\u5668\u4e0a&#xff0c;\u8ba9 Node \u8fdb\u7a0b\u5e38\u9a7b\u8fd0\u884c&#xff0c;\u7531 Nginx \u5bf9\u5916\u63d0\u4f9b Web \u670d\u52a1\u2014\u2014Redwood \u540c\u6837\u652f\u6301\u3002<\/p>\n<p>\u672c\u624b\u518c\u7ed9\u51fa\u7684\u65b9\u6848\u6838\u5fc3\u662f&#xff1a;<\/p>\n<ul>\n<li>PM2 \u4f5c\u4e3a\u8fdb\u7a0b\u5b88\u62a4\u4e0e\u53d1\u5e03\u5de5\u5177&#xff0c;\u8d1f\u8d23\u62c9\u53d6\u4ee3\u7801\u3001\u6267\u884c\u6784\u5efa\u4e0e\u6570\u636e\u5e93\u8fc1\u79fb\u3001\u91cd\u542f\u670d\u52a1\u5e76\u4fdd\u8bc1\u8fdb\u7a0b\u5d29\u6e83\u540e\u81ea\u52a8\u6062\u590d&#xff1b;<\/li>\n<li>Nginx \u4f5c\u4e3a\u751f\u4ea7\u7ea7 Web \u670d\u52a1\u5668&#xff0c;\u8d1f\u8d23\u6258\u7ba1\u524d\u7aef\u9759\u6001\u6587\u4ef6&#xff08;web\/dist&#xff09;&#xff0c;\u5e76\u5c06 \/api\/ \u8def\u5f84\u7684\u8bf7\u6c42\u53cd\u5411\u4ee3\u7406\u7ed9\u540e\u7aef API \u8fdb\u7a0b&#xff1b;<\/li>\n<li>Postgres \u4f5c\u4e3a\u751f\u4ea7\u6570\u636e\u5e93&#xff0c;\u901a\u8fc7 .env \u4e2d\u7684 DATABASE_URL \u6ce8\u5165\u5e94\u7528\u3002<\/li>\n<\/ul>\n<p>\u6ce8\u610f&#xff1a;\u8be5\u6587\u6863\u5728\u540e\u7eed\u7248\u672c\u4e2d\u5df2\u88ab Baremetal \u90e8\u7f72\u6587\u6863&#xff08;\u5373 docs\/docs\/deploy\/baremetal.md&#xff09;\u53d6\u4ee3\u3002Baremetal \u65b9\u6848\u5c06\u672c\u624b\u518c\u7684\u6d41\u7a0b\u5c01\u88c5\u4e3a yarn rw deploy baremetal \u4e00\u6761\u547d\u4ee4&#xff0c;\u4f46\u5176\u5e95\u5c42\u4ecd\u662f SSH &#043; PM2 &#043; Nginx \u8fd9\u4e00\u5957\u673a\u5236\u3002\u7406\u89e3\u672c\u6587\u7684\u624b\u52a8\u914d\u7f6e&#xff0c;\u80fd\u5e2e\u52a9\u4f60\u66f4\u597d\u5730\u7406\u89e3 Baremetal \u81ea\u52a8\u5316\u505a\u4e86\u4ec0\u4e48\u3002<\/p>\n<h3>\u4e8c\u3001\u524d\u7f6e\u8981\u6c42<\/h3>\n<p>\u5728\u5f00\u59cb\u4e4b\u524d&#xff0c;\u4f60\u5e94\u5f53\u5bf9\u4ee5\u4e0b\u5de5\u5177\u5177\u5907\u57fa\u672c\u7684\u4f7f\u7528\u7ecf\u9a8c&#xff1a;<\/p>\n<ul>\n<li>PM2&#xff1a;Node.js \u8fdb\u7a0b\u7ba1\u7406\u5668&#xff0c;\u7528\u4e8e\u5b88\u62a4\u3001\u91cd\u542f\u3001\u65e5\u5fd7\u4e0e\u53d1\u5e03&#xff1b;<\/li>\n<li>Nginx&#xff1a;\u9ad8\u6027\u80fd Web \u670d\u52a1\u5668\u4e0e\u53cd\u5411\u4ee3\u7406&#xff1b;<\/li>\n<li>Linux&#xff1a;\u670d\u52a1\u5668\u64cd\u4f5c\u7cfb\u7edf\u57fa\u672c\u64cd\u4f5c&#xff08;\u7528\u6237\u3001\u6743\u9650\u3001SSH&#xff09;&#xff1b;<\/li>\n<li>Postgres&#xff1a;\u751f\u4ea7\u6570\u636e\u5e93\u7684\u521b\u5efa\u4e0e\u8fde\u63a5\u3002<\/li>\n<\/ul>\n<h3>\u4e09\u3001\u5e94\u7528\u4fa7\u914d\u7f6e<\/h3>\n<p>\u5728\u52a8\u624b\u914d\u7f6e\u670d\u52a1\u5668\u4e4b\u524d&#xff0c;\u9700\u8981\u5148\u5bf9\u4f60\u7684 Redwood \u9879\u76ee\u505a\u4e09\u5904\u8c03\u6574\u3002<\/p>\n<h4>1. \u6dfb\u52a0 PM2 \u4f9d\u8d56<\/h4>\n<p>\u5728\u9879\u76ee\u6839\u76ee\u5f55\u628a PM2 \u5b89\u88c5\u4e3a\u5f00\u53d1\u4f9d\u8d56&#xff1a;<\/p>\n<p>yarn add -D pm2<\/p>\n<h4>2. \u521b\u5efa PM2 \u751f\u6001\u914d\u7f6e\u6587\u4ef6<\/h4>\n<p>\u4f7f\u7528 PM2 \u81ea\u5e26\u7684\u521d\u59cb\u5316\u547d\u4ee4\u751f\u6210\u751f\u6001\u914d\u7f6e\u6587\u4ef6&#xff0c;\u5e76\u5efa\u8bae\u5c06\u5176\u91cd\u547d\u540d\u4e3a\u66f4\u6e05\u6670\u7684 pm2.config.js&#xff1a;<\/p>\n<p>yarn pm2 init<br \/>\nmv ecosystem.config.js pm2.config.js<\/p>\n<p>pm2.config.js \u662f\u540e\u7eed\u6240\u6709\u53d1\u5e03\u4e0e\u8fdb\u7a0b\u7ba1\u7406\u52a8\u4f5c\u7684\u67a2\u7ebd&#xff1a;\u5b83\u65e2\u5b9a\u4e49\u4e86\u672c\u5730&#034;\u8fd0\u884c\u54ea\u4e9b\u8fdb\u7a0b\u3001\u600e\u4e48\u8fd0\u884c&#034;&#xff0c;\u4e5f\u5b9a\u4e49\u4e86\u8fdc\u7a0b&#034;\u4ece\u54ea\u4e2a\u4ed3\u5e93\u62c9\u4ee3\u7801\u3001\u90e8\u7f72\u5230\u54ea\u91cc\u3001\u53d1\u5e03\u540e\u6267\u884c\u4ec0\u4e48\u547d\u4ee4&#034;\u3002<\/p>\n<h4>3. \u4fee\u6539 API \u7aef\u70b9\u5730\u5740<\/h4>\n<p>Redwood \u5e94\u7528\u9ed8\u8ba4\u628a API \u6302\u8f7d\u5728 \/.redwood\/functions&#xff08;Serverless \u51fd\u6570\u8def\u5f84&#xff09;\u3002\u5728 Serverful \u573a\u666f\u4e0b&#xff0c;\u6211\u4eec\u5e0c\u671b\u901a\u8fc7 Nginx \u5c06 \/api \u524d\u7f00\u53cd\u5411\u4ee3\u7406\u5230\u672c\u5730 API \u7aef\u53e3&#xff0c;\u56e0\u6b64\u9700\u8981\u4fee\u6539\u9879\u76ee\u6839\u76ee\u5f55\u7684 redwood.toml&#xff1a;<\/p>\n<p>&#8211; apiUrl &#061; &#034;\/.redwood\/functions&#034;<br \/>\n&#043; apiUrl &#061; &#034;\/api&#034;<\/p>\n<p>\u4ece\u914d\u7f6e\u8bed\u4e49\u4e0a\u770b&#xff0c;apiUrl \u51b3\u5b9a\u4e86 Web \u7aef\u5411 API \u53d1\u8d77\u8bf7\u6c42\u7684\u5730\u5740\u3002\u6839\u636e app-configuration-redwood-toml.md \u7684\u8bf4\u660e&#xff0c;apiUrl \u65e2\u53ef\u4ee5\u662f\u76f8\u5bf9 URL&#xff08;\u6b64\u65f6\u5b83\u76f8\u5f53\u4e8e\u4e00\u4e2a\u4ee3\u7406\u8def\u5f84&#xff09;&#xff0c;\u4e5f\u53ef\u4ee5\u662f\u5b8c\u6574 URL&#xff1b;\u5176\u9ed8\u8ba4\u503c\u4e3a &#039;\/.redwood\/functions&#039;&#xff0c;GraphQL \u7aef\u70b9\u4f1a\u63a8\u5bfc\u4e3a ${apiUrl}\/graphql\u3002\u6539\u4e3a \/api \u540e&#xff0c;\u6d4f\u89c8\u5668\u8bf7\u6c42\u4f1a\u53d1\u5f80 \/api\/graphql&#xff0c;\u518d\u7531 Nginx \u8f6c\u53d1\u7ed9\u540e\u7aef\u8fdb\u7a0b\u3002<\/p>\n<h4>4. \u53ef\u9009&#xff1a;\u6dfb\u52a0\u53d1\u5e03\u811a\u672c<\/h4>\n<p>\u4e3a\u4e86\u65b9\u4fbf&#xff0c;\u53ef\u5728\u9876\u5c42 package.json \u4e2d\u6dfb\u52a0\u4e24\u4e2a\u53d1\u5e03\u76f8\u5173\u7684\u811a\u672c&#xff1a;<\/p>\n<p>&#034;scripts&#034;: {<br \/>\n  &#034;deploy:setup&#034;: &#034;pm2 deploy pm2.config.js production setup&#034;,<br \/>\n  &#034;deploy&#034;: &#034;pm2 deploy pm2.config.js production deploy&#034;<br \/>\n}<\/p>\n<p>\u5176\u4e2d deploy:setup \u7528\u4e8e\u5728\u670d\u52a1\u5668\u4e0a\u9996\u6b21\u521d\u59cb\u5316\u76ee\u5f55\u7ed3\u6784&#xff0c;deploy \u7528\u4e8e\u6b63\u5f0f\u53d1\u5e03\u3002\u5373\u4f7f\u4f60\u4e0d\u628a\u5b83\u4eec\u5199\u8fdb package.json&#xff0c;\u4e5f\u5e94\u8bb0\u4f4f\u8fd9\u4e24\u6761\u547d\u4ee4\u2014\u2014\u540e\u7eed\u90e8\u7f72\u6d41\u7a0b\u4f1a\u7528\u5230\u5b83\u4eec\u3002<\/p>\n<h3>\u56db\u3001\u670d\u52a1\u5668\u4fa7\u51c6\u5907<\/h3>\n<p>\u4f60\u7684 Linux \u670d\u52a1\u5668\u5e94\u5f53\u6709\u4e00\u4e2a\u4e13\u95e8\u7528\u4e8e\u90e8\u7f72\u7684\u7cfb\u7edf\u7528\u6237&#xff0c;\u5e76\u901a\u8fc7 SSH \u5bc6\u94a5\u6388\u6743\u8bbf\u95ee\u751f\u4ea7\u73af\u5883\u3002\u672c\u624b\u518c\u4e2d\u8be5\u7528\u6237\u540d\u4e3a deploy\u3002<\/p>\n<p>\u57fa\u672c\u8981\u6c42&#xff1a;<\/p>\n<ul>\n<li>\u670d\u52a1\u5668\u53ef\u88ab\u4f60\u7684\u5f00\u53d1\u673a\u901a\u8fc7 SSH \u514d\u5bc6\u767b\u5f55&#xff08;\u5efa\u8bae\u5c06\u672c\u5730\u516c\u94a5\u52a0\u5165\u670d\u52a1\u5668 ~\/.ssh\/authorized_keys&#xff09;&#xff1b;<\/li>\n<li>deploy \u7528\u6237\u5bf9\u5e94\u7528\u90e8\u7f72\u76ee\u5f55\u62e5\u6709\u8bfb\u5199\u6743\u9650&#xff1b;<\/li>\n<li>\u670d\u52a1\u5668\u4e0a\u5df2\u5b89\u88c5 Node.js\u3001yarn\u3001PM2&#xff08;\u5168\u5c40\u6216\u9879\u76ee\u7ea7\u5747\u53ef&#xff09;\u4e0e Postgres\u3002<\/li>\n<\/ul>\n<h3>\u4e94\u3001Nginx \u914d\u7f6e\u8be6\u89e3<\/h3>\n<p>\u5178\u578b\u505a\u6cd5\u662f\u628a\u7ad9\u70b9\u914d\u7f6e\u653e\u5728 \/etc\/nginx\/sites-available\/redwood-pm2&#xff0c;\u7136\u540e\u901a\u8fc7\u7b26\u53f7\u94fe\u63a5\u542f\u7528\u5b83&#xff1a;<\/p>\n<p>sudo ln -s \/etc\/nginx\/sites-available\/redwood-pm2 \/etc\/nginx\/sites-enabled\/redwood-pm2<\/p>\n<p>\u914d\u7f6e\u6587\u4ef6\u5185\u5bb9\u5982\u4e0b&#xff1a;<\/p>\n<p>server {<br \/>\n  server_name redwood-pm2.example.com;<br \/>\n  listen 80;<\/p>\n<p>  location \/ {<br \/>\n    root \/home\/deploy\/redwood-pm2\/current\/web\/dist;<br \/>\n    try_files $uri \/index.html;<br \/>\n  }<\/p>\n<p>  location \/api\/ {<br \/>\n    proxy_pass http:\/\/localhost:8911\/;<br \/>\n    proxy_http_version 1.1;<br \/>\n    proxy_set_header Upgrade $http_upgrade;<br \/>\n    proxy_set_header Connection &#039;upgrade&#039;;<br \/>\n    proxy_set_header Host $host;<br \/>\n    proxy_cache_bypass $http_upgrade;<br \/>\n  }<br \/>\n}<\/p>\n<p>\u5404\u90e8\u5206\u7684\u804c\u8d23&#xff1a;<\/p>\n<table>\n<tr>\u914d\u7f6e\u6bb5\u4f5c\u7528<\/tr>\n<tbody>\n<tr>\n<td>location \/<\/td>\n<td>\u4ee5 web\/dist \u4e3a\u7ad9\u70b9\u6839\u76ee\u5f55&#xff0c;\u7528 try_files $uri \/index.html \u5b9e\u73b0 SPA \u524d\u7aef\u8def\u7531\u56de\u9000&#xff1a;\u6240\u6709\u672a\u547d\u4e2d\u771f\u5b9e\u6587\u4ef6\u7684\u8bf7\u6c42\u90fd\u4ea4\u7ed9 index.html&#xff0c;\u7531\u524d\u7aef\u8def\u7531\u63a5\u7ba1<\/td>\n<\/tr>\n<tr>\n<td>location \/api\/<\/td>\n<td>\u5c06 \/api\/ \u524d\u7f00\u7684\u8bf7\u6c42\u53cd\u5411\u4ee3\u7406\u5230\u672c\u673a 8911 \u7aef\u53e3\u4e0a\u7684 Redwood API \u8fdb\u7a0b<\/td>\n<\/tr>\n<tr>\n<td>proxy_set_header Upgrade \/ Connection &#039;upgrade&#039;<\/td>\n<td>\u652f\u6301 WebSocket \u5347\u7ea7&#xff0c;\u5bf9 GraphQL \u8ba2\u9605\u7b49\u5b9e\u65f6\u7279\u6027\u662f\u5fc5\u9700\u7684<\/td>\n<\/tr>\n<tr>\n<td>proxy_set_header Host $host<\/td>\n<td>\u4fdd\u6301\u539f\u59cb Host \u5934&#xff0c;\u4fdd\u8bc1\u540e\u7aef\u751f\u6210 URL \u4e0e\u65e5\u5fd7\u4e2d\u7684\u57df\u540d\u6b63\u786e<\/td>\n<\/tr>\n<tr>\n<td>proxy_cache_bypass $http_upgrade<\/td>\n<td>\u907f\u514d\u5bf9\u5347\u7ea7\u4e3a WebSocket \u7684\u8fde\u63a5\u505a\u7f13\u5b58<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5173\u952e\u7ec6\u8282&#xff1a;proxy_pass \u7ed3\u5c3e\u7684\u659c\u6760\u81f3\u5173\u91cd\u8981\u3002 \u5f53\u5199\u4e3a proxy_pass http:\/\/localhost:8911\/;&#xff08;\u5e26\u5c3e\u659c\u6760&#xff09;\u65f6&#xff0c;Nginx \u4f1a\u7528\u5339\u914d\u5230\u7684 location \/api\/ \u4e4b\u540e\u7684\u90e8\u5206\u62fc\u63a5\u76ee\u6807\u5730\u5740&#xff0c;\u5373 \/api\/graphql \u4f1a\u88ab\u6620\u5c04\u4e3a\u540e\u7aef\u7684 \/graphql&#xff0c;\u4ece\u800c\u6b63\u786e\u5339\u914d Redwood API \u7684\u51fd\u6570\u8def\u7531&#xff1b;\u5982\u679c\u53bb\u6389\u5c3e\u659c\u6760&#xff0c;\/api\/graphql \u4f1a\u88ab\u539f\u6837\u8f6c\u53d1\u4e3a http:\/\/localhost:8911\/api\/graphql&#xff0c;\u5bfc\u81f4 404\u3002\u8fd9\u662f\u672c\u914d\u7f6e\u4e2d\u6700\u5bb9\u6613\u8e29\u5751\u7684\u5730\u65b9\u3002<\/p>\n<h3>\u516d\u3001PM2 \u914d\u7f6e\u8be6\u89e3<\/h3>\n<p>\u73b0\u5728\u586b\u5145\u524d\u9762\u751f\u6210\u7684 pm2.config.js\u3002\u6587\u4ef6\u9876\u90e8\u96c6\u4e2d\u5b9a\u4e49\u4e86\u6700\u5173\u952e\u7684\u53d8\u91cf&#xff0c;\u5176\u4e2d\u7aef\u53e3\u53ea\u5728\u670d\u52a1\u5668\u672c\u5730\u4f7f\u7528&#xff0c;\u5e76\u4e14\u5fc5\u987b\u4e0e Nginx \u914d\u7f6e\u4e2d\u7684\u4ee3\u7406\u7aef\u53e3\u4fdd\u6301\u4e00\u81f4&#xff1a;<\/p>\n<p>const name &#061; &#039;redwood-pm2&#039; \/\/ Name to use in PM2<br \/>\nconst repo &#061; &#039;git&#064;github.com:njjkgeerts\/redwood-pm2.git&#039; \/\/ Link to your repo<br \/>\nconst user &#061; &#039;deploy&#039; \/\/ Server user<br \/>\nconst path &#061; &#096;\/home\/${user}\/${name}&#096; \/\/ Path on the server to deploy to<br \/>\nconst host &#061; &#039;example.com&#039; \/\/ Server hostname<br \/>\nconst port &#061; 8911 \/\/ Port to use locally on the server<br \/>\nconst build &#061; &#096;yarn install &amp;&amp; yarn rw build &amp;&amp; yarn rw prisma migrate deploy&#096;<\/p>\n<p>module.exports &#061; {<br \/>\n  apps: [<br \/>\n    {<br \/>\n      name,<br \/>\n      node_args: &#039;-r dotenv\/config&#039;,<br \/>\n      cwd: &#096;${path}\/current\/&#096;,<br \/>\n      script: &#039;yarn rw serve api&#039;,<br \/>\n      args: &#096;&#8211;port ${port}&#096;,<br \/>\n      env: {<br \/>\n        NODE_ENV: &#039;development&#039;,<br \/>\n      },<br \/>\n      env_production: {<br \/>\n        NODE_ENV: &#039;production&#039;,<br \/>\n      },<br \/>\n    },<br \/>\n  ],<\/p>\n<p>  deploy: {<br \/>\n    production: {<br \/>\n      user,<br \/>\n      host,<br \/>\n      ref: &#039;origin\/master&#039;,<br \/>\n      repo,<br \/>\n      path,<br \/>\n      ssh_options: &#039;ForwardAgent&#061;yes&#039;,<br \/>\n      &#039;post-deploy&#039;: &#096;${build} &amp;&amp; pm2 reload pm2.config.js &#8211;env production &amp;&amp; pm2 save&#096;,<br \/>\n    },<br \/>\n  },<br \/>\n}<\/p>\n<p>\u9010\u4e2a\u62c6\u89e3\u5173\u952e\u914d\u7f6e\u9879&#xff1a;<\/p>\n<table>\n<tr>\u914d\u7f6e\u9879\u542b\u4e49<\/tr>\n<tbody>\n<tr>\n<td>apps[0].script<\/td>\n<td>\u8981\u8fd0\u884c\u7684\u547d\u4ee4&#xff0c;\u8fd9\u91cc\u4e3a yarn rw serve api&#xff0c;\u5373\u53ea\u542f\u52a8 Redwood \u7684 API \u7aef&#xff08;Web \u7aef\u7531 Nginx \u6258\u7ba1\u9759\u6001\u6587\u4ef6&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>apps[0].args<\/td>\n<td>\u4f20\u7ed9\u547d\u4ee4\u7684\u53c2\u6570&#xff0c;&#8211;port ${port} \u5c06 API \u7aef\u53e3\u56fa\u5b9a\u4e3a 8911\u3002\u6839\u636e CLI \u547d\u4ee4\u53c2\u8003 \u4e2d serve \u4e00\u8282&#xff0c;&#8211;port \u7684\u9ed8\u8ba4\u503c\u6b63\u662f 8911&#xff0c;\u6b64\u5904\u663e\u5f0f\u58f0\u660e\u4ee5\u4fdd\u8bc1\u4e0e Nginx \u4e25\u683c\u4e00\u81f4<\/td>\n<\/tr>\n<tr>\n<td>apps[0].node_args: &#039;-r dotenv\/config&#039;<\/td>\n<td>\u5728\u8fdb\u7a0b\u542f\u52a8\u524d\u9884\u52a0\u8f7d dotenv\/config&#xff0c;\u4f7f\u670d\u52a1\u5668\u4e0a current \u76ee\u5f55\u4e2d\u7684 .env \u6587\u4ef6\u80fd\u88ab\u81ea\u52a8\u8bfb\u53d6&#xff08;\u8fd9\u662f DATABASE_URL \u7b49\u73af\u5883\u53d8\u91cf\u751f\u6548\u7684\u5173\u952e&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>apps[0].cwd<\/td>\n<td>\u8fdb\u7a0b\u5de5\u4f5c\u76ee\u5f55\u4e3a ${path}\/current\/&#xff0c;\u5373 PM2 \u90e8\u7f72\u673a\u5236\u7ef4\u62a4\u7684&#034;\u5f53\u524d\u7248\u672c&#034;\u7b26\u53f7\u94fe\u63a5<\/td>\n<\/tr>\n<tr>\n<td>env \/ env_production<\/td>\n<td>\u4e0d\u540c\u73af\u5883\u4e0b\u7684 NODE_ENV\u3002\u53d1\u5e03\u65f6\u901a\u8fc7 &#8211;env production \u9009\u62e9\u751f\u4ea7\u73af\u5883\u53d8\u91cf<\/td>\n<\/tr>\n<tr>\n<td>deploy.production.ref<\/td>\n<td>\u8981\u53d1\u5e03\u7684 Git \u5206\u652f\u5f15\u7528&#xff0c;\u672c\u4f8b\u4e3a origin\/master<\/td>\n<\/tr>\n<tr>\n<td>deploy.production.ssh_options: &#039;ForwardAgent&#061;yes&#039;<\/td>\n<td>\u5f00\u542f SSH Agent \u8f6c\u53d1&#xff0c;\u670d\u52a1\u5668\u53ef\u501f\u7528\u672c\u5730\u5f00\u53d1\u673a\u7684 SSH \u51ed\u8bc1\u53bb\u62c9\u53d6\u4ed3\u5e93&#xff08;\u5bf9\u79c1\u6709\u4ed3\u5e93\u5c24\u5176\u5fc5\u8981&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>deploy.production[&#039;post-deploy&#039;]<\/td>\n<td>\u4ee3\u7801\u66f4\u65b0\u540e\u5728\u670d\u52a1\u5668\u4e0a\u4f9d\u6b21\u6267\u884c&#xff1a;\u5b89\u88c5\u4f9d\u8d56 \u2192 \u6784\u5efa \u2192 \u5e94\u7528\u6570\u636e\u5e93\u8fc1\u79fb \u2192 \u4ee5\u751f\u4ea7\u73af\u5883\u91cd\u8f7d PM2 \u8fdb\u7a0b \u2192 \u4fdd\u5b58\u8fdb\u7a0b\u5217\u8868<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5173\u4e8e\u6784\u5efa\u547d\u4ee4\u4e2d\u7684\u6570\u636e\u5e93\u8fc1\u79fb&#xff1a;yarn rw build \u4f1a\u540c\u65f6\u6784\u5efa Web \u4e0e API \u4e24\u4fa7&#xff08;\u4ea7\u7269\u5206\u522b\u4f4d\u4e8e web\/dist \u4e0e api\/dist&#xff09;&#xff1b;yarn rw prisma migrate deploy \u7528\u4e8e\u5728\u751f\u4ea7\u6570\u636e\u5e93\u4e0a\u5e94\u7528\u5df2\u63d0\u4ea4\u7684\u8fc1\u79fb\u6587\u4ef6&#xff08;\u6ce8\u610f\u5b83\u662f\u975e\u4ea4\u4e92\u5f0f\u547d\u4ee4&#xff0c;\u9002\u5408\u81ea\u52a8\u5316\u573a\u666f&#xff09;\u3002<\/p>\n<p>\u9996\u6b21\u90e8\u7f72\u9700\u8981\u521d\u59cb\u5316\u6570\u636e\u5e93\u79cd\u5b50\u6570\u636e\u65f6&#xff0c;\u53ef\u4ee5\u6539\u7528 yarn redwood prisma migrate dev \u5b8c\u6210&#xff0c;\u5b83\u4f1a\u4e3a\u4f60\u5728\u751f\u4ea7\u6570\u636e\u5e93\u4e0a\u5e94\u7528\u8fc1\u79fb&#xff08;\u540c\u65f6\u4e5f\u53ef\u6267\u884c\u79cd\u5b50\u903b\u8f91&#xff09;\u3002<\/p>\n<p>\u26a0\ufe0f \u5df2\u77e5\u5751&#xff08;Caveat&#xff09;&#xff1a; Redwood \u7684 API \u8fdb\u7a0b\u5728 PM2 \u4e0b\u4f3c\u4e4e\u53ea\u80fd\u4ee5 fork \u6a21\u5f0f\u8fd0\u884c&#xff0c;\u800c\u4e0d\u80fd\u4f7f\u7528 cluster \u6a21\u5f0f\u3002\u8fd9\u610f\u5473\u7740\u672c\u914d\u7f6e\u4e2d\u4e0d\u8981\u7ed9\u8be5\u8fdb\u7a0b\u8bbe\u7f6e instances\/exec_mode: &#039;cluster&#039;&#xff0c;\u5426\u5219\u670d\u52a1\u53ef\u80fd\u65e0\u6cd5\u6b63\u5e38\u5de5\u4f5c\u3002\u8fd9\u4e00\u9650\u5236\u4e0e Baremetal \u6587\u6863\u4e2d\u9ed8\u8ba4\u751f\u6210\u7684 ecosystem.config.js&#xff08;\u4f7f\u7528 instances: &#039;max&#039; &#043; exec_mode: &#039;cluster&#039;&#xff09;\u4e0d\u540c\u2014\u2014Baremetal \u65b9\u6848\u4f1a\u914d\u5408 wait_ready \u4e0e listen_timeout \u4f7f\u7528\u96c6\u7fa4\u6a21\u5f0f&#xff0c;\u800c\u672c\u624b\u518c\u7684\u624b\u52a8\u65b9\u6848\u4fdd\u6301\u9ed8\u8ba4\u7684\u5355\u8fdb\u7a0b fork \u6a21\u5f0f\u5373\u53ef\u3002<\/p>\n<h3>\u4e03\u3001\u90e8\u7f72\u6d41\u7a0b<\/h3>\n<h4>1. \u521d\u59cb\u5316\u670d\u52a1\u5668\u76ee\u5f55<\/h4>\n<p>\u5728\u5f00\u53d1\u673a\u4e0a\u6267\u884c&#xff1a;<\/p>\n<p>yarn install<br \/>\nyarn deploy:setup<\/p>\n<p>yarn deploy:setup \u5b9e\u9645\u6267\u884c\u7684\u662f pm2 deploy pm2.config.js production setup&#xff0c;\u5b83\u4f1a\u5728\u670d\u52a1\u5668\u4e0a\u6309 path \u53d8\u91cf\u521b\u5efa\u90e8\u7f72\u76ee\u5f55\u9aa8\u67b6&#xff08;\u901a\u5e38\u5305\u62ec current \u7b26\u53f7\u94fe\u63a5\u4e0e\u5b58\u653e\u5404\u6b21\u53d1\u5e03\u7248\u672c\u7684\u76ee\u5f55&#xff09;\u3002\u6b64\u65f6\u670d\u52a1\u5668\u76ee\u5f55\u7ed3\u6784\u5df2\u5c31\u7eea&#xff0c;\u4f46\u8fd8\u6ca1\u6709\u73af\u5883\u53d8\u91cf\u3002<\/p>\n<h4>2. \u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/h4>\n<p>SSH \u767b\u5f55\u670d\u52a1\u5668&#xff0c;\u5728\u90e8\u7f72\u76ee\u5f55\u7684 current \u5b50\u76ee\u5f55\u4e2d\u521b\u5efa .env \u6587\u4ef6&#xff1a;<\/p>\n<p>vim \/home\/deploy\/redwood-pm2\/current\/.env<\/p>\n<p>\u81f3\u5c11\u9700\u8981\u4e00\u4e2a DATABASE_URL&#xff0c;\u4f8b\u5982&#xff1a;<\/p>\n<p>DATABASE_URL&#061;postgres:\/\/postgres:postgres&#064;localhost:5432\/redwood-pm2<\/p>\n<p>\u7531\u4e8e PM2 \u914d\u7f6e\u4e2d\u542f\u7528\u4e86 node_args: &#039;-r dotenv\/config&#039;&#xff0c;\u8fd9\u4e2a .env \u4f1a\u5728\u8fdb\u7a0b\u542f\u52a8\u65f6\u88ab\u81ea\u52a8\u52a0\u8f7d\u3002\u8bf7\u786e\u4fdd\u8be5\u8fde\u63a5\u4e32\u6307\u5411\u7684 Postgres \u6570\u636e\u5e93\u5df2\u521b\u5efa&#xff0c;\u4e14\u8d26\u53f7\u6709\u6743\u9650\u6267\u884c\u8fc1\u79fb&#xff08;\u9700\u8981 DDL \u6743\u9650&#xff09;\u3002<\/p>\n<h4>3. \u4e00\u952e\u53d1\u5e03<\/h4>\n<p>\u56de\u5230\u5f00\u53d1\u673a&#xff0c;\u6267\u884c&#xff1a;<\/p>\n<p>yarn deploy<\/p>\n<p>\u5373 pm2 deploy pm2.config.js production deploy\u3002\u8fd9\u4e00\u6761\u547d\u4ee4\u4f1a\u4f9d\u6b21\u5b8c\u6210&#xff1a;<\/p>\n<li>\u901a\u8fc7 SSH \u8fde\u63a5\u670d\u52a1\u5668&#xff1b;<\/li>\n<li>\u6309 ref&#xff08;origin\/master&#xff09;\u62c9\u53d6\u6700\u65b0\u4ee3\u7801\u5230\u65b0\u7684\u7248\u672c\u76ee\u5f55&#xff1b;<\/li>\n<li>\u6267\u884c post-deploy \u94a9\u5b50&#xff1a;yarn install \u5b89\u88c5\u4f9d\u8d56 \u2192 yarn rw build \u6784\u5efa \u2192 yarn rw prisma migrate deploy \u5e94\u7528\u6570\u636e\u5e93\u8fc1\u79fb \u2192 pm2 reload pm2.config.js &#8211;env production \u4ee5\u751f\u4ea7\u73af\u5883\u91cd\u8f7d API \u8fdb\u7a0b \u2192 pm2 save \u4fdd\u5b58\u8fdb\u7a0b\u5217\u8868&#xff08;\u4fdd\u8bc1\u670d\u52a1\u5668\u91cd\u542f\u540e PM2 \u80fd\u6062\u590d\u8fd9\u4e9b\u8fdb\u7a0b&#xff09;\u3002<\/li>\n<p>\u53d1\u5e03\u5b8c\u6210\u540e&#xff0c;Nginx \u8d1f\u8d23\u5bf9\u5916\u63d0\u4f9b web\/dist \u4e0b\u7684\u9759\u6001\u9875\u9762&#xff0c;\u5e76\u628a\u6240\u6709 \/api\/ \u8bf7\u6c42\u53cd\u5411\u4ee3\u7406\u5230 8911 \u7aef\u53e3\u7684 Redwood API \u8fdb\u7a0b&#xff0c;\u6574\u4e2a\u5e94\u7528\u4fbf\u5904\u4e8e Serverful \u8fd0\u884c\u72b6\u6001\u3002<\/p>\n<h3>\u516b\u3001\u539f\u7406\u7eb5\u6df1&#xff1a;yarn rw serve api \u5728\u505a\u4ec0\u4e48<\/h3>\n<p>\u7406\u89e3\u8fd9\u6761\u88ab PM2 \u5b88\u62a4\u7684\u547d\u4ee4&#xff0c;\u6709\u52a9\u4e8e\u6392\u67e5\u90e8\u7f72\u95ee\u9898\u3002\u4ece serve \u547d\u4ee4\u6e90\u7801 \u53ef\u4ee5\u770b\u5230&#xff1a;<\/p>\n<ul>\n<li>rw serve \u662f\u5b50\u547d\u4ee4\u5f0f\u7ed3\u6784&#xff0c;\u652f\u6301 serve&#xff08;\u9ed8\u8ba4\u540c\u65f6\u670d\u52a1 Web \u4e0e API&#xff09;\u3001serve api\u3001serve web \u4e09\u79cd\u5f62\u6001&#xff1b;<\/li>\n<li>\u542f\u52a8\u524d\u4e2d\u95f4\u4ef6\u4f1a\u505a\u4e00\u7cfb\u5217\u524d\u7f6e\u6821\u9a8c&#xff1a;\u4f8b\u5982 serve web \u8981\u6c42 web\/dist \u4e0b\u5b58\u5728 index.html&#xff0c;serve api \u8981\u6c42\u5df2\u6267\u884c yarn rw build api&#xff08;\u5373 api\/dist \u5b58\u5728&#xff09;&#xff1b;\u82e5\u7f3a\u5c11\u6784\u5efa\u4ea7\u7269\u4f1a\u76f4\u63a5\u62a5\u9519\u9000\u51fa\u3002\u8fd9\u6b63\u662f\u90e8\u7f72\u811a\u672c\u4e2d\u5148\u6267\u884c yarn rw build \u7684\u539f\u56e0&#xff1b;<\/li>\n<li>\u82e5\u8fdb\u7a0b\u542f\u52a8\u65f6\u672a\u8bbe\u7f6e NODE_ENV&#xff0c;\u547d\u4ee4\u4f1a\u5c06\u5176\u8865\u4e3a production&#xff08;\u89c1 serve.js \u4e2d process.env.NODE_ENV &#061; &#039;production&#039; \u7684\u903b\u8f91&#xff09;&#xff0c;\u6240\u4ee5\u751f\u4ea7\u73af\u5883\u4e0b\u65e0\u9700\u663e\u5f0f\u8bbe\u7f6e\u8be5\u53d8\u91cf&#xff1b;<\/li>\n<li>serve api \u7684 &#8211;port \u9ed8\u8ba4\u503c 8911&#xff0c;\u4e0e\u672c\u6587 Nginx \u914d\u7f6e\u4e2d\u7684 proxy_pass http:\/\/localhost:8911\/ \u5b8c\u5168\u5bf9\u5e94\u3002<\/li>\n<\/ul>\n<p>\u4ece\u67b6\u6784\u89d2\u5ea6&#xff0c;yarn rw serve api \u542f\u52a8\u7684\u662f\u4e00\u4e2a Fastify \u670d\u52a1\u5668\u6765\u627f\u8f7d GraphQL \u7aef\u70b9\u4e0e\u81ea\u5b9a\u4e49\u51fd\u6570&#xff1b;yarn rw serve web \u5219\u8d1f\u8d23\u6258\u7ba1 web\/dist \u9759\u6001\u8d44\u6e90&#xff08;\u4e5f\u53ef\u901a\u8fc7 &#8211;apiHost \u628a API \u8bf7\u6c42\u8f6c\u53d1\u5230\u8fdc\u7aef&#xff09;\u3002\u672c\u624b\u518c\u9009\u62e9&#034;\u53ea\u8ba9 PM2 \u8dd1 API\u3001\u8ba9 Nginx \u6258\u7ba1\u9759\u6001\u6587\u4ef6&#034;\u7684\u7ec4\u5408&#xff0c;\u662f\u751f\u4ea7\u73af\u5883\u4e2d\u6700\u7a33\u7684\u6a21\u5f0f\u2014\u2014\u56e0\u4e3a Redwood \u5185\u7f6e\u7684 Web \u670d\u52a1\u5668&#xff08;Fastify&#xff09;\u5e76\u4e0d\u662f\u4e3a\u9ad8\u6d41\u91cf\u9759\u6001\u6587\u4ef6\u6258\u7ba1\u800c\u8bbe\u8ba1\u7684&#xff0c;\u4e13\u4e1a Web \u670d\u52a1\u5668 Nginx \u66f4\u9002\u5408\u627f\u62c5\u8fd9\u4e00\u89d2\u8272\u3002<\/p>\n<h3>\u4e5d\u3001\u4ece\u624b\u52a8\u914d\u7f6e\u5230 Baremetal \u81ea\u52a8\u5316<\/h3>\n<p>\u672c\u624b\u518c\u7684\u624b\u52a8\u65b9\u6848\u662f\u7406\u89e3 Serverful \u90e8\u7f72\u7684\u6700\u4f73\u8d77\u70b9\u3002\u5982\u679c\u4f60\u60f3\u8fdb\u4e00\u6b65\u81ea\u52a8\u5316&#xff0c;\u4ed3\u5e93\u7684 Baremetal \u90e8\u7f72\u6587\u6863 \u63d0\u4f9b\u4e86\u5b98\u65b9\u7684\u4e00\u4f53\u5316\u65b9\u6848&#xff1a;<\/p>\n<ul>\n<li>\u4e00\u6761\u547d\u4ee4\u5373\u53ef\u5b8c\u6210\u53d1\u5e03&#xff1a;yarn rw deploy baremetal production &#8211;first-run&#xff08;\u9996\u6b21&#xff09;\u4e0e yarn rw deploy baremetal production&#xff08;\u540e\u7eed&#xff09;&#xff1b;<\/li>\n<li>\u5b83\u5185\u90e8\u590d\u7528\u4e86 PM2&#xff1a;\u9ed8\u8ba4\u751f\u6210 ecosystem.config.js \u8fd0\u884c yarn rw serve&#xff08;\u540c\u65f6\u670d\u52a1\u4e24\u7aef&#xff0c;Web \u9ed8\u8ba4 8910 \u7aef\u53e3&#xff09;&#xff0c;\u5e76\u652f\u6301\u62c6\u5206\u4e3a\u4ec5\u670d\u52a1 API \u7684\u914d\u7f6e\u914d\u5408 Nginx&#xff1b;<\/li>\n<li>\u540c\u6837\u9700\u8981 Nginx \u53cd\u5411\u4ee3\u7406&#xff0c;Baremetal \u6587\u6863\u7ed9\u51fa\u4e86 nginx.conf \u7684\u5b8c\u6574\u793a\u4f8b&#xff0c;\u5176\u4e2d location ~ \/api(.*) &#043; rewrite ^\/api(.*) $1 break \u7684\u505a\u6cd5\u4e0e\u672c\u6587 proxy_pass \u5c3e\u659c\u6760\u6280\u5de7\u5f02\u66f2\u540c\u5de5&#xff0c;\u90fd\u662f\u628a\u5bf9\u5916\u8def\u5f84\u5265\u6389\u524d\u7f00\u540e\u6620\u5c04\u5230\u540e\u7aef&#xff1b;<\/li>\n<li>Baremetal \u8fd8\u652f\u6301 &#8211;rollback \u56de\u6eda\u3001&#8211;maintenance \u7ef4\u62a4\u9875\u3001pm2 startup \u5f00\u673a\u81ea\u542f\u7b49\u751f\u4ea7\u7ea7\u80fd\u529b\u3002<\/li>\n<\/ul>\n<p>\u7b80\u8a00\u4e4b&#xff1a;\u672c\u6587\u7684\u624b\u52a8\u914d\u7f6e &#061; Baremetal \u81ea\u52a8\u5316\u66ff\u4f60\u6267\u884c\u7684\u90a3\u7ec4\u547d\u4ee4\u7684&#034;\u5c55\u5f00\u7248&#034;\u3002\u5148\u5728\u670d\u52a1\u5668\u4e0a\u624b\u52a8\u8dd1\u901a\u8fd9\u6761\u94fe\u8def&#xff0c;\u518d\u7528 Baremetal \u5c01\u88c5\u5b83&#xff0c;\u662f\u7a33\u59a5\u7684\u4e0a\u7ebf\u8def\u5f84\u3002<\/p>\n<h3>\u5341\u3001\u5c0f\u7ed3<\/h3>\n<p>Serverful \u81ea\u6258\u7ba1\u8ba9 Redwood \u6446\u8131 Serverless \u5e73\u53f0\u7684\u7ea6\u675f&#xff0c;\u56de\u5230&#034;\u81ea\u5df1\u7684\u4e00\u53f0\u670d\u52a1\u5668&#034;\u4e0a&#xff1a;Nginx \u8d1f\u8d23\u9759\u6001\u6587\u4ef6\u4e0e\u53cd\u5411\u4ee3\u7406&#xff0c;PM2 \u8d1f\u8d23\u8fdb\u7a0b\u5b88\u62a4\u4e0e\u53d1\u5e03&#xff0c;yarn rw serve api \u8d1f\u8d23\u627f\u8f7d GraphQL API&#xff0c;DATABASE_URL \u8fde\u63a5\u751f\u4ea7 Postgres\u3002\u672c\u6587\u4ece\u5e94\u7528\u4fa7\u4e09\u5904\u914d\u7f6e&#xff08;PM2 \u4f9d\u8d56\u3001pm2.config.js\u3001redwood.toml \u7684 apiUrl&#xff09;\u8bb2\u8d77&#xff0c;\u8986\u76d6\u4e86\u670d\u52a1\u5668\u7528\u6237\u51c6\u5907\u3001Nginx \u7ad9\u70b9\u914d\u7f6e&#xff08;\u6ce8\u610f proxy_pass \u5c3e\u659c\u6760&#xff09;\u3001PM2 \u751f\u6001\u914d\u7f6e&#xff08;\u6ce8\u610f fork \u6a21\u5f0f\u9650\u5236&#xff09;\u4ee5\u53ca&#034;\u521d\u59cb\u5316 \u2192 \u914d .env \u2192 \u4e00\u952e\u53d1\u5e03&#034;\u7684\u5b8c\u6574\u90e8\u7f72\u6d41\u7a0b&#xff0c;\u5e76\u6df1\u5165\u5230 serve \u547d\u4ee4\u6e90\u7801 \u4e0e CLI \u53c2\u8003 \u89e3\u91ca\u4e86\u5e95\u5c42\u539f\u7406\u3002\u6309\u6b64\u6d41\u7a0b&#xff0c;\u4f60\u5c31\u80fd\u628a\u81ea\u5df1\u7684 Redwood \u5e94\u7528\u7a33\u5b9a\u5730\u8dd1\u5728\u81ea\u6709\u670d\u52a1\u5668\u4e0a\u3002<\/p>\n<p>  <img loading=\"lazy\" decoding=\"async\" class=\"gcb-icon-like\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260923020855-6ab334b7f23db.svg\" alt=\"\" width=\"16\" height=\"16\" \/> <span class=\"gcb-like-text\">\u8d5e<\/span>  <\/p>\n<p>   <span class=\"gcb-share-text\">\u5206\u4eab<\/span>  <\/p>\n<ul class=\"gcb-tag-list\">\n<li><span class=\"gcb-tag\">\u540e\u7aef<\/span><\/li>\n<li><span class=\"gcb-tag\">\u524d\u7aef<\/span><\/li>\n<li><span class=\"gcb-tag\">Web\u6846\u67b6<\/span><\/li>\n<li><span class=\"gcb-tag\">\u5f00\u53d1\u5de5\u5177<\/span><\/li>\n<\/ul>\n<h3 class=\"gcb-project-title\">\u3010\u514d\u8d39\u4e0b\u8f7d\u94fe\u63a5\u3011redwood<\/h3>\n<p class=\"gcb-project-desc\">RedwoodGraphQL<\/p>\n<p>    <span class=\"gcb-project-addr-label\">\u9879\u76ee\u5730\u5740&#xff1a;<\/span><br \/>\n    <span class=\"gcb-project-addr-link\">https:\/\/gitcode.com\/gh_mirrors\/re\/redwood<\/span> <\/p>\n<p>  <span class=\"gcb-project-btn\"> <span class=\"gcb-project-btn-main\">\u70b9\u51fb\u67e5\u770b<\/span> <span class=\"gcb-project-btn-sub\">\u514d\u8d39\u4e0b\u8f7d<\/span> <\/span> <\/p>\n<h4 class=\"gcb-related-title\">\u76f8\u5173\u63a8\u8350<\/h4>\n<ul class=\"gcb-related-list\">\n<li class=\"gcb-related-item\">\n<h5 class=\"gcb-related-item-title\">\u7f51\u76d8\u4e0b\u8f7d\u65b0\u9769\u547d&#xff1a;\u4e5d\u5927\u7f51\u76d8\u76f4\u94fe\u4e0b\u8f7d\u52a9\u624b\u5b8c\u5168\u6307\u5357<\/h5>\n<p class=\"gcb-related-item-desc\">\u7f51\u76d8\u4e0b\u8f7d\u65b0\u9769\u547d&#xff1a;\u4e5d\u5927\u7f51\u76d8\u76f4\u94fe\u4e0b\u8f7d\u52a9\u624b\u5b8c\u5168\u6307\u5357 \u8fd8\u5728\u4e3a\u7f51\u76d8\u4e0b\u8f7d\u901f\u5ea6\u6162\u800c\u70e6\u607c\u5417&#xff1f;\u6bcf\u6b21\u4e0b\u8f7d\u5927\u6587\u4ef6\u90fd\u8981\u7b49\u5f85\u6570\u5c0f\u65f6&#xff0c;\u975e\u4f1a\u5458\u7528\u6237\u66f4\u662f\u88ab\u9650\u901f\u5230\u51e0\u5341KB\/s\u3002\u4eca\u5929\u6211\u8981\u5206\u4eab\u4e00\u4e2a\u5f00<\/p>\n<p>     <span class=\"gcb-tag\">\u540e\u7aef<\/span><br \/>\n     <span class=\"gcb-tag\">\u524d\u7aef<\/span><br \/>\n     <span class=\"gcb-tag\">Web\u6846\u67b6<\/span><br \/>\n     <span class=\"gcb-tag\">\u5f00\u53d1\u5de5\u5177<\/span>\n      <\/li>\n<li class=\"gcb-related-item\">\n<h5 class=\"gcb-related-item-title\">Redwood \u81ea\u6258\u7ba1\u90e8\u7f72\u5b9e\u6218&#xff1a;\u7528 PM2 \u4e0e Nginx \u5728 Linux \u670d\u52a1\u5668\u4e0a\u8fd0\u884c Serverful \u5e94\u7528<\/h5>\n<p class=\"gcb-related-item-desc\">Redwood \u81ea\u6258\u7ba1\u90e8\u7f72\u5b9e\u6218&#xff1a;\u7528 PM2 \u4e0e Nginx \u5728 Linux \u670d\u52a1\u5668\u4e0a\u8fd0\u884c Serverful \u5e94\u7528 Redwood \u9ed8\u8ba4\u9762\u5411 serverles<\/p>\n<p>     <span class=\"gcb-tag\">\u540e\u7aef<\/span><br \/>\n     <span class=\"gcb-tag\">\u524d\u7aef<\/span><br \/>\n     <span class=\"gcb-tag\">Web\u6846\u67b6<\/span><br \/>\n     <span class=\"gcb-tag\">\u5f00\u53d1\u5de5\u5177<\/span>\n      <\/li>\n<li class=\"gcb-related-item\">\n<h5 class=\"gcb-related-item-title\">Redwood \u81ea\u6258\u7ba1&#xff08;Serverful&#xff09;\u90e8\u7f72\u5b9e\u6218&#xff1a;\u4f7f\u7528 PM2 \u4e0e Nginx \u5728 Linux \u670d\u52a1\u5668\u4e0a\u6258\u7ba1 Redwood \u5e94\u7528<\/h5>\n<p class=\"gcb-related-item-desc\">Redwood \u81ea\u6258\u7ba1&#xff08;Serverful&#xff09;\u90e8\u7f72\u5b9e\u6218&#xff1a;\u4f7f\u7528 PM2 \u4e0e Nginx \u5728 Linux \u670d\u52a1\u5668\u4e0a\u6258\u7ba1 Redwood \u5e94\u7528 \u672c\u6307\u5357\u4ee5 Redwood<\/p>\n<p>     <span class=\"gcb-tag\">\u540e\u7aef<\/span><br \/>\n     <span class=\"gcb-tag\">\u524d\u7aef<\/span><br \/>\n     <span class=\"gcb-tag\">Web\u6846\u67b6<\/span><br \/>\n     <span class=\"gcb-tag\">\u5f00\u53d1\u5de5\u5177<\/span>\n      <\/li>\n<\/ul>\n<p>  <span class=\"gcb-prev-next-label\">\u4e0a\u4e00\u7bc7&#xff1a;<\/span><br \/>\n  slam_toolbox\u4e0e\u5176\u4ed6SLAM\u5e93\u5bf9\u6bd4\u5206\u6790&#xff1a;\u4e3a\u4ec0\u4e48\u5b83\u662f\u751f\u4ea7\u673a\u5668\u4eba\u7684\u9996\u9009 <\/p>\n<p>  <span class=\"gcb-prev-next-label\">\u4e0b\u4e00\u7bc7&#xff1a;<\/span><br \/>\n  \u300aECMAScript 6 \u5165\u95e8\u300b\u7cbe\u8bfb&#xff1a;let \u4e0e const \u547d\u4ee4\u7684\u5757\u7ea7\u4f5c\u7528\u57df\u3001\u6682\u65f6\u6027\u6b7b\u533a\u4e0e\u9876\u5c42\u5bf9\u8c61\u8131\u94a9 <\/p>\n<p>\u521b\u4f5c\u58f0\u660e\uff1a\u672c\u6587\u90e8\u5206\u5185\u5bb9\u7531AI\u8f85\u52a9\u751f\u6210\uff08AIGC\uff09\uff0c\u4ec5\u4f9b\u53c2\u8003<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u540e\u7aef\u524d\u7aefWeb\u6846\u67b6\u5f00\u53d1\u5de5\u5177 \u3010\u514d\u8d39\u4e0b\u8f7d\u94fe\u63a5\u3011redwood RedwoodGraphQL \u9879\u76ee\u5730\u5740&#xff1a; https:\/\/gitcode.com\/gh_mirrors\/re\/redwood \u70b9\u51fb\u67e5\u770b \u514d\u8d39\u4e0b\u8f7d  \u672c\u6307\u5357\u57fa\u4e8e Redwood \u5b98\u65b9 4.x \u7248\u672c\u6587\u6863\u4e2d\u7684\u300aSelf-hosting Redwood (Serverful)\u300b\u624b\u518c&#xff0c;\u8bb2\u89e3\u5982\u4f55\u4ee5\u4f20\u7edf\\&#8221;\u670d\u52a1\u5668\u6258\u7ba1\\&#8221;&#xff08;Serverful&#xff09;\u65b9\u5f0f&#xff0c;\u5728\u81ea\u6709 Linux<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"topic":[],"class_list":["post-109084","post","type-post","status-publish","format-standard","hentry","category-server"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Redwood \u81ea\u6258\u7ba1\uff08Serverful\uff09\u90e8\u7f72\u5b9e\u6218\uff1a\u4f7f\u7528 PM2 \u4e0e Nginx \u5728 Linux \u670d\u52a1\u5668\u4e0a\u8fd0\u884c\u5b8c\u6574\u5e94\u7528 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/109084.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Redwood \u81ea\u6258\u7ba1\uff08Serverful\uff09\u90e8\u7f72\u5b9e\u6218\uff1a\u4f7f\u7528 PM2 \u4e0e Nginx \u5728 Linux \u670d\u52a1\u5668\u4e0a\u8fd0\u884c\u5b8c\u6574\u5e94\u7528 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u540e\u7aef\u524d\u7aefWeb\u6846\u67b6\u5f00\u53d1\u5de5\u5177 \u3010\u514d\u8d39\u4e0b\u8f7d\u94fe\u63a5\u3011redwood RedwoodGraphQL \u9879\u76ee\u5730\u5740&#xff1a; https:\/\/gitcode.com\/gh_mirrors\/re\/redwood \u70b9\u51fb\u67e5\u770b \u514d\u8d39\u4e0b\u8f7d \u672c\u6307\u5357\u57fa\u4e8e Redwood \u5b98\u65b9 4.x \u7248\u672c\u6587\u6863\u4e2d\u7684\u300aSelf-hosting Redwood (Serverful)\u300b\u624b\u518c&#xff0c;\u8bb2\u89e3\u5982\u4f55\u4ee5\u4f20\u7edf&quot;\u670d\u52a1\u5668\u6258\u7ba1&quot;&#xff08;Serverful&#xff09;\u65b9\u5f0f&#xff0c;\u5728\u81ea\u6709 Linux\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/109084.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-23T02:08:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260923020855-6ab334b7f23db.svg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/109084.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/109084.html\",\"name\":\"Redwood \u81ea\u6258\u7ba1\uff08Serverful\uff09\u90e8\u7f72\u5b9e\u6218\uff1a\u4f7f\u7528 PM2 \u4e0e Nginx \u5728 Linux \u670d\u52a1\u5668\u4e0a\u8fd0\u884c\u5b8c\u6574\u5e94\u7528 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-23T02:08:57+00:00\",\"dateModified\":\"2026-09-23T02:08:57+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/109084.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/109084.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/109084.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Redwood \u81ea\u6258\u7ba1\uff08Serverful\uff09\u90e8\u7f72\u5b9e\u6218\uff1a\u4f7f\u7528 PM2 \u4e0e Nginx \u5728 Linux \u670d\u52a1\u5668\u4e0a\u8fd0\u884c\u5b8c\u6574\u5e94\u7528\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Redwood \u81ea\u6258\u7ba1\uff08Serverful\uff09\u90e8\u7f72\u5b9e\u6218\uff1a\u4f7f\u7528 PM2 \u4e0e Nginx \u5728 Linux \u670d\u52a1\u5668\u4e0a\u8fd0\u884c\u5b8c\u6574\u5e94\u7528 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/109084.html","og_locale":"zh_CN","og_type":"article","og_title":"Redwood \u81ea\u6258\u7ba1\uff08Serverful\uff09\u90e8\u7f72\u5b9e\u6218\uff1a\u4f7f\u7528 PM2 \u4e0e Nginx \u5728 Linux \u670d\u52a1\u5668\u4e0a\u8fd0\u884c\u5b8c\u6574\u5e94\u7528 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u540e\u7aef\u524d\u7aefWeb\u6846\u67b6\u5f00\u53d1\u5de5\u5177 \u3010\u514d\u8d39\u4e0b\u8f7d\u94fe\u63a5\u3011redwood RedwoodGraphQL \u9879\u76ee\u5730\u5740&#xff1a; https:\/\/gitcode.com\/gh_mirrors\/re\/redwood \u70b9\u51fb\u67e5\u770b \u514d\u8d39\u4e0b\u8f7d \u672c\u6307\u5357\u57fa\u4e8e Redwood \u5b98\u65b9 4.x \u7248\u672c\u6587\u6863\u4e2d\u7684\u300aSelf-hosting Redwood (Serverful)\u300b\u624b\u518c&#xff0c;\u8bb2\u89e3\u5982\u4f55\u4ee5\u4f20\u7edf\"\u670d\u52a1\u5668\u6258\u7ba1\"&#xff08;Serverful&#xff09;\u65b9\u5f0f&#xff0c;\u5728\u81ea\u6709 Linux","og_url":"https:\/\/www.wsisp.com\/helps\/109084.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-23T02:08:57+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260923020855-6ab334b7f23db.svg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"6 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/109084.html","url":"https:\/\/www.wsisp.com\/helps\/109084.html","name":"Redwood \u81ea\u6258\u7ba1\uff08Serverful\uff09\u90e8\u7f72\u5b9e\u6218\uff1a\u4f7f\u7528 PM2 \u4e0e Nginx \u5728 Linux \u670d\u52a1\u5668\u4e0a\u8fd0\u884c\u5b8c\u6574\u5e94\u7528 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-23T02:08:57+00:00","dateModified":"2026-09-23T02:08:57+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/109084.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/109084.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/109084.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Redwood \u81ea\u6258\u7ba1\uff08Serverful\uff09\u90e8\u7f72\u5b9e\u6218\uff1a\u4f7f\u7528 PM2 \u4e0e Nginx \u5728 Linux \u670d\u52a1\u5668\u4e0a\u8fd0\u884c\u5b8c\u6574\u5e94\u7528"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/109084","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=109084"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/109084\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=109084"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=109084"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=109084"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=109084"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}