Skip to content

Commit

Permalink
doc: update docs/ansible.md (#543)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
nangongchengfeng and 魏栋梁 committed Feb 29, 2024
1 parent 6358f19 commit c03deba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 "拉取最新代码完成。"
Expand Down Expand Up @@ -201,7 +203,7 @@ crontab -e

*/10 * * * * /opt/cron/git-down-pages.sh >> /opt/cron/git-down.log 2>&1
```

**添加 NGINX 配置:**

```nginx
Expand Down

0 comments on commit c03deba

Please sign in to comment.