📝 更新README

pull/139/head
ruibaby 2019-01-29 14:02:51 +08:00
parent 4ba907954c
commit 2099be7281
2 changed files with 18 additions and 14 deletions

View File

@ -33,28 +33,30 @@ Deploy with shell script
```bash ```bash
# install Halo # install Halo
yum install -y wget && wget -O halo-cli.sh https://git.io/fxHqp && bash halo-cli.sh -i $ yum install -y wget && wget -O halo-cli.sh https://git.io/fxHqp && bash halo-cli.sh -i
# upgrade Halo # upgrade Halo
bash halo-cli.sh -u $ bash halo-cli.sh -u
``` ```
Deploy with Docker Deploy with Docker
```bash ```bash
# pull docker images # pull docker images
docker pull ruibaby/halo $ docker pull ruibaby/halo
# create docker container and run it # create docker container and run it
docker run -d --name halo -p 8090:8090 -v ~/halo:/root/halo ruibaby/halo $ docker run -d --name halo -p 8090:8090 -v ~/halo:/root/halo ruibaby/halo
# TipsDB_USER and DB_PASSWORD must be repaired and recorded
``` ```
Deploy with Docker compose Deploy with Docker compose
```bash ```bash
# Download the nginx config file template # Download the nginx config file template
curl https://raw.githubusercontent.com/jwilder/nginx-proxy/master/nginx.tmpl > /etc/nginx/nginx.tmpl $ curl https://raw.githubusercontent.com/jwilder/nginx-proxy/master/nginx.tmpl > /etc/nginx/nginx.tmpl
# Get the docker-compose.yaml # Get the docker-compose.yaml
yum install -y wget && wget -O docker-compose.yaml https://git.io/fpS8N $ yum install -y wget && wget -O docker-compose.yaml https://git.io/fpS8N
# Modify docker-compose.yaml # Modify docker-compose.yaml
# 1. modify VIRTUAL_HOST, LETSENCRYPT_HOST for your own domain name. # 1. modify VIRTUAL_HOST, LETSENCRYPT_HOST for your own domain name.
@ -63,7 +65,7 @@ yum install -y wget && wget -O docker-compose.yaml https://git.io/fpS8N
# 4. modify DB_PASSWORD . # 4. modify DB_PASSWORD .
# run # run
docker-compose up -d $ docker-compose up -d
``` ```
> Tips: If you use Idea, Eclipse and other IDEs to run, you need to install the Lombok plugin, In addition, JDK10 is not supported at the moment, and there are problems with themes scanning and uploading. > Tips: If you use Idea, Eclipse and other IDEs to run, you need to install the Lombok plugin, In addition, JDK10 is not supported at the moment, and there are problems with themes scanning and uploading.

View File

@ -33,28 +33,30 @@
```bash ```bash
# 安装 Halo # 安装 Halo
yum install -y wget && wget -O halo-cli.sh https://git.io/fxHqp && bash halo-cli.sh -i $ yum install -y wget && wget -O halo-cli.sh https://git.io/fxHqp && bash halo-cli.sh -i
# 更新 Halo # 更新 Halo
bash halo-cli.sh -u $ bash halo-cli.sh -u
``` ```
Docker 部署: Docker 部署:
```bash ```bash
# 拉取镜像 # 拉取镜像
docker pull ruibaby/halo $ docker pull ruibaby/halo
# 运行 # 运行
docker run -d --name halo -p 8090:8090 -v ~/halo:/root/halo ruibaby/halo $ docker run -d --name halo -p 8090:8090 -v ~/halo:/root/halo -e DB_USER=root -e DB_PASSWORD=123456 ruibaby/halo
# 注意DB_USER 和 DB_PASSWORD 务必修改并记下
``` ```
Docker Compose 部署: Docker Compose 部署:
```bash ```bash
# 下载 Nginx 配置文件模板 # 下载 Nginx 配置文件模板
curl https://raw.githubusercontent.com/jwilder/nginx-proxy/master/nginx.tmpl > /etc/nginx/nginx.tmpl $ curl https://raw.githubusercontent.com/jwilder/nginx-proxy/master/nginx.tmpl > /etc/nginx/nginx.tmpl
# 获取 docker-compose.yaml 文件 # 获取 docker-compose.yaml 文件
yum install -y wget && wget -O docker-compose.yaml https://git.io/fpS8N $ yum install -y wget && wget -O docker-compose.yaml https://git.io/fpS8N
# 修改 docker-compose.yaml # 修改 docker-compose.yaml
# 1. 修改 VIRTUAL_HOST,LETSENCRYPT_HOST 为自己的域名。 # 1. 修改 VIRTUAL_HOST,LETSENCRYPT_HOST 为自己的域名。
@ -63,7 +65,7 @@ yum install -y wget && wget -O docker-compose.yaml https://git.io/fpS8N
# 4. 修改 DB_PASSWORD 数据库密码。 # 4. 修改 DB_PASSWORD 数据库密码。
# 运行 # 运行
docker-compose up -d $ docker-compose up -d
``` ```
> 注意:如使用 IdeaEclipse 等IDE运行的话需要安装Lombok插件另外暂不支持JDK10主题管理和主题上传会有问题。 > 注意:如使用 IdeaEclipse 等IDE运行的话需要安装Lombok插件另外暂不支持JDK10主题管理和主题上传会有问题。