doc: update docs/ansible.md (#543)
* doc: update ansible.md * doc: update ansible.md 代码格式 * 增加十分钟同步的域名、增加自动部署脚本 * 优化部署文档:定时任务同步pages的内容 * 优化 git-down-pages.sh 脚本 到配置 * update README.md * 更新代码 * update: doc ansible.md * update CONTRIBUTING.md * update CONTRIBUTING.md fix * 优化ansible排版格式 * fix: 定时脚本的逻辑 bug * update: ansible.md --------- Co-authored-by: 魏栋梁 <dongliang.wei@fujfu.com>
This commit is contained in:
parent
6358f19144
commit
c03deba9a5
@ -140,6 +140,8 @@ remove_old_backups() {
|
||||
# 函数:拉取最新代码
|
||||
clone_latest_code() {
|
||||
echo "拉取最新代码..."
|
||||
# 进入 /data 目录
|
||||
cd $DATA_DIR
|
||||
git clone $REPO_URL -b $BRANCH
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "拉取最新代码完成。"
|
||||
@ -201,7 +203,7 @@ crontab -e
|
||||
|
||||
*/10 * * * * /opt/cron/git-down-pages.sh >> /opt/cron/git-down.log 2>&1
|
||||
```
|
||||
|
||||
|
||||
**添加 NGINX 配置:**
|
||||
|
||||
```nginx
|
||||
|
Loading…
x
Reference in New Issue
Block a user