forked from Gitlink/forgeplus-react
621 B
621 B
gitlink-ssr版本
node版本
12.x
ng配置
if ($http_user_agent ~* "googlebot|Mediapartners-Google|bingbot|google-structured-data-testing-tool|baiduspider|360Spider|Sogou Spider|Yahoo! Slurp China|^$")
{#判断如果是网络爬虫,转发到node服务器下
proxy_pass http://www.test.com:3000;
break;
}
依赖安装、运行
npm install pm2 -g //装过就不用再执行此条
// 依赖
npm install
// 打包
npm run build
npm run build:server
// 启动服务
npm run pm2
或者
npm install pm2 -g //装过就不用再执行此条
./build.sh