网站开发和部署的GitHub方案



当文件更改与git repo不同时,我如何在github服务器上发布更改的文件?

好吧,这是当前的情况:

开发服务器:

与github同步:

/development/web   #html,js, etc... 

未直接链接到github:

/www/web (Same html files. Apache is looking at here)

我想:

1. Do changes in www/web files (to test the results locally)
2. Propagate these changes in /development/web 
3. Commit&Push changes to github
  • 可以使用符号链接执行此操作吗?
  • 客户侧钩?我认为,只要挂钩居住在git仓库中,它们就不会工作。

通常,工作流以其他方式工作:

  • 您在git存储库的专用文件夹中修改,添加,提交和推送文件。
  • 服务器上的接收后服务器挂钩将git存储库的正确文件夹提取到/www/web

直接在服务器上进行修改可能会通过SymLink(如果/www/web链接到/your/repo/web(来工作,这意味着您的git存储库没有Symlink,但是部署环境可以,并链接回存储库。

相关内容

最新更新