Go to file
Eeeros 32e0673528 Merge pull request '修复专区抓取失败问题' (#619) from Eeeros/forgeplus-react:gitlink_ssr_test into gitlink_ssr
1
2024-01-30 16:29:17 +08:00
.idea href 2021-03-29 17:14:56 +08:00
.vscode 服务新建成功提示语+激 活devops后未跳转到引擎配置 2022-05-26 14:51:48 +08:00
config cont. 2024-01-15 15:06:28 +08:00
public head新增title 2024-01-26 16:34:15 +08:00
scripts 优化版 2020-04-28 17:23:34 +08:00
server 优化 2024-01-19 17:34:43 +08:00
src 修复专区抓取失败问题 2024-01-30 16:26:21 +08:00
.babelrc cont. 2023-12-29 16:43:14 +08:00
.gitignore test 2023-12-26 13:49:10 +08:00
LICENSE ADD MulanPSL-2.0 LICENSE 2021-10-22 09:55:53 +08:00
README.md Update README.md 2024-01-15 13:48:44 +08:00
Routes.js 暂存 2024-01-05 15:01:16 +08:00
add.txt 优化版 2020-04-28 17:23:34 +08:00
build.sh cont. 2024-01-15 09:58:57 +08:00
package-lock.json Merge remote-tracking branch 'upstream/gitlink_ssr' into gitlink_ssr_test 2024-01-15 12:31:37 +08:00
package.json 添加日志记录 2024-01-15 09:51:04 +08:00
pm2.json 脚本 2024-01-15 09:56:55 +08:00
readme.txt first commit 2020-03-16 14:12:11 +08:00

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