Hugo 博客双仓库部署方案:GitHub Pages + Vercel
本文介绍如何用两个 GitHub 仓库实现 Hugo 博客的自动化构建和部署,同时接入 Vercel 作为免费 CDN 加速方案。
本文介绍如何用两个 GitHub 仓库实现 Hugo 博客的自动化构建和部署,同时接入 Vercel 作为免费 CDN 加速方案。
使用 xurl auth oauth2 进行 OAuth2 授权时,浏览器跳转到 X 授权页面后提示:
你无法获得该应用的访问权限。请返回并尝试重新登录。
https://github.com/antlr/grammars-v4/tree/master/sql/plsql
下载2个.g4的文件
注意运行此jar包需要jdk11。
截至2023-01-20,antlr-4.11.0-complete.jar及以上版本生成出的parser本人未能修改并成功跑通,多次降低版本至4.10.1才勉强改动后跑起来了,如有纰漏请指正。
https://www.elastic.co/guide/en/elasticsearch/reference/7.16/docker.html
└── elasticsearch
├── node-00
│ ├── config
│ │ └── elasticsearch.yml
│ ├── data
│ ├── docker-compose.yml
│ ├── logs
│ └── plugins
│ └── ik
├── node-01
│ ├── config
│ │ └── elasticsearch.yml
│ ├── data
│ ├── docker-compose.yml
│ ├── logs
│ └── plugins
│ └── ik
└── node-02
├── config
│ └── elasticsearch.yml
├── data
├── docker-compose.yml
├── logs
└── plugins
└── ik
chown 1000:1000 data
chown 1000:1000 logs
docker network ls
docker network create --driver bridge elastic
version: "3"
services:
es-node-00:
image: docker.elastic.co/elasticsearch/elasticsearch:7.16.3
container_name: es-node-00
environment:
- "TZ=Asia/Shanghai"
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
restart: always
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
ports:
- 9200:9200
- 9300:9300
networks:
- elastic
volumes:
- ./config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- ./data:/usr/share/elasticsearch/data
- ./plugins:/usr/share/elasticsearch/plugins
- ./logs:/usr/share/elasticsearch/logs
networks:
elastic:
external: true
version: "3"
services:
es-node-01:
image: docker.elastic.co/elasticsearch/elasticsearch:7.16.3
container_name: es-node-01
environment:
- "TZ=Asia/Shanghai"
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
restart: always
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
ports:
- 9201:9200
- 9301:9300
networks:
- elastic
volumes:
- ./config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- ./data:/usr/share/elasticsearch/data
- ./plugins:/usr/share/elasticsearch/plugins
- ./logs:/usr/share/elasticsearch/logs
networks:
elastic:
external: true
version: "3"
services:
es-node-02:
image: docker.elastic.co/elasticsearch/elasticsearch:7.16.3
container_name: es-node-02
environment:
- "TZ=Asia/Shanghai"
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
restart: always
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
ports:
- 9202:9200
- 9302:9300
networks:
- elastic
volumes:
- ./config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- ./data:/usr/share/elasticsearch/data
- ./plugins:/usr/share/elasticsearch/plugins
- ./logs:/usr/share/elasticsearch/logs
networks:
elastic:
external: true
cluster.name: my-es-cluster
node.name: es-node-00
network.host: es-node-00
http.port: 9200
transport.port: 9300
http.cors.enabled: true
http.cors.allow-origin: "*"
discovery.seed_hosts: ["es-node-01", "es-node-02"]
bootstrap.memory_lock: true
cluster.initial_master_nodes: ["es-node-00", "es-node-01", "es-node-02"]
#disable the usage of geoip functionality
ingest.geoip.downloader.enabled: false
cluster.name: my-es-cluster
node.name: es-node-01
network.host: es-node-01
http.port: 9200
transport.port: 9300
http.cors.enabled: true
http.cors.allow-origin: "*"
discovery.seed_hosts: ["es-node-00", "es-node-02"]
bootstrap.memory_lock: true
cluster.initial_master_nodes: ["es-node-00", "es-node-01", "es-node-02"]
#disable the usage of geoip functionality
ingest.geoip.downloader.enabled: false
cluster.name: my-es-cluster
node.name: es-node-02
network.host: es-node-02
http.port: 9200
transport.port: 9300
http.cors.enabled: true
http.cors.allow-origin: "*"
discovery.seed_hosts: ["es-node-00", "es-node-01"]
bootstrap.memory_lock: true
cluster.initial_master_nodes: ["es-node-00", "es-node-01", "es-node-02"]
#disable the usage of geoip functionality
ingest.geoip.downloader.enabled: false