forked from Gitlink/forgeplus-react
1 |
||
|---|---|---|
| .idea | ||
| .vscode | ||
| config | ||
| public | ||
| scripts | ||
| server | ||
| src | ||
| .babelrc | ||
| .gitignore | ||
| LICENSE | ||
| README.md | ||
| Routes.js | ||
| add.txt | ||
| build.sh | ||
| package-lock.json | ||
| package.json | ||
| pm2.json | ||
| readme.txt | ||
README.md
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