Skip to content

iofu728/blog

Repository files navigation

Wyydsb logo

乌云压顶是吧

GitHub GitHub tag GitHub code size in bytes

很高兴不认识你

基于 VuePress 构建的blog: https://wyydsb.xin

New Features 🧸

The vuepress theme base on vuepress-theme-indigo

  • Support MathJax in markdown environments.
  • Generate BibTeX in each blog.
  • Support multi-level tags.
  • Support redirect link in 404 page.

开发指南

Latest release 👉

# Dev
$ wget https://github.com/iofu728/blog/archive/v4.3.2.tar.gz
$ tar -zxvf v4.3.2.tar.gz
$ cd blog-4.3.2
$ yarn
$ yarn doc:dev

# Deploy
$ vim script/constant.sh  #Change Service Path
$ bash script/

Docker

$ docker pull iofu728/blog:v4.3.2
$ docker pull iofu728/blog:backend-v4.3.2

Backend

# mysql config
$ cp blog-backend/blog-repository/src/main/resources/application.yml.temple blog-backend/blog-repository/src/main/resources/application.yml

# gradle build
$ cd blog-backend
$ ./gradlew clean build -x test
$ nohup java -jar blog-collector/build/libs/blog-collector-4.3.0-SNAPSHOT.jar >> test.txt 2>&1 &

部署指南

.
├── README.md
├── blog-backend
│   ├── blog-collector
│   │   └── src
│   │       ├── main
│   │       │   ├── java
│   │       │   │   └── com.github.iofu728.blog.collector
│   │       │   │       ├── BlogCollectorApplicationContext.java
│   │       │   │       ├── bo
│   │       │   │       ├── collector
│   │       │   │       ├── consts
│   │       │   │       ├── filter
│   │       │   │       └── service
│   │       │   └── resources
│   │       └── test
│   ├── blog-repository
│   │   └── src
│   │       ├── main
│   │       │   ├── java
│   │       │   │   └── com.github.iofu728.blog.repository
│   │       │   │       ├── BlogRepositoryApplicationContext.java
│   │       │   │       ├── dataSource
│   │       │   │       ├── entity
│   │       │   │       ├── enums
│   │       │   │       ├── mapper
│   │       │   │       └── repository
│   │       │   └── resources
│   ├── build.gradle
│   ├── gradle.properties
│   ├── gradlew
│   ├── gradlew.bat
│   └── settings.gradle
├── script
│   ├── KPI.java                   // MapReduce prepare.java
│   ├── PersonVersion.java         // MapReduce Map&Reduce.java
│   ├── backup.sh                  // backup shell
│   ├── build.sh                   // build shell
│   ├── constant.sh                // Services Path *important 需设置(Need Set when you deploy)
│   ├── crontable.sh               // 每分钟调用pv.sh设置
│   ├── day.sh                     // 每日数据采集脚本  天粒度
└── └── pv.sh                      // pv计算及更新脚本 5s粒度

PS: 有一部分更新脚本放在iofu728/spider-press