Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

服务器自动同步仓库的修改 #1733

Closed
linlinzzo opened this issue Oct 2, 2023 · 1 comment
Closed

服务器自动同步仓库的修改 #1733

linlinzzo opened this issue Oct 2, 2023 · 1 comment

Comments

@linlinzzo
Copy link
Contributor

@jiangmiemie
建议添加一个每日的自动任务,执行一段 python,内容为:

import os
os.removedirs("/www/wwwroot/www.travellings.cn")
destination_path  = "/www/wwwroot/www.travellings.cn"
clone_command = "git clone --branch gh-pages --single-branch https://github.com/travellings-link/travellings.git"
clone_with_path = clone_command  +" "+ destination_path
os.system(clone_with_path)
@github-actions github-actions bot added the 待处理 请等待维护者处理您的申请。 label Oct 2, 2023
@jiangyangcreate
Copy link
Contributor

jiangyangcreate commented Oct 2, 2023

服务器你们测完直接做,用Bash 脚本就行。
Bash教程可以参考这个文档:https://wangdoc.com/bash/intro
你自己学一下或者让其他有兴趣的人学一下。就当练手了

@travellings-link travellings-link locked and limited conversation to collaborators Oct 3, 2023
@jiangyangcreate jiangyangcreate converted this issue into discussion #1736 Oct 3, 2023
@github-actions github-actions bot removed the 待处理 请等待维护者处理您的申请。 label Oct 3, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Development

No branches or pull requests

2 participants