WP主题GIT推向GitHub和VPS

发布于 2025-02-04 09:33:12 字数 211 浏览 3 评论 0原文

任何想法如何将您的项目推向Github。然后,GitHub将仅推(Webhooks)特定文件夹(IE Dist内容)到数字海洋VP?

例如,我在本地从事WordPress项目。然后,我将其推到Github。但是我希望Github自动将拳头文件夹的内容物推向数字海洋VPS。我使用deploy.php脚本来自动执行任务,并且工作正常。但是无法将特定文件夹推向VPS。

Any idea how to git push your project to github. Then, github will push (webhooks) only specific folder (i.e. dist contents) to digital ocean vps?

For example, I am working on a wordpress project locally. Then, I push it to github. But I want github to automatically push the contents of fist folder to digital ocean vps. I use a deploy.php script to automate the task and it's working fine. But unable to push a specific folder to vps.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

不忘初心 2025-02-11 09:33:12

我找到了一个解决方案。我必须使用github动作。

https://github.com/marketplace/cretplace/ftpplace/ftpp-depploy#exclude-文件

I found a solution. I have to use github actions instead.

https://github.com/marketplace/actions/ftp-deploy#exclude-files

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文