forgeplus-react/README.md

39 lines
621 B
Markdown
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.

# 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;
}
```
#### 依赖安装、运行
```bash
npm install pm2 -g //装过就不用再执行此条
// 依赖
npm install
// 打包
npm run build
npm run build:server
// 启动服务
npm run pm2
```
或者
```bash
npm install pm2 -g //装过就不用再执行此条
./build.sh
```