我想在 Linux 上编辑 Apache 配置,这样每次 git pull 的更改都不会立即反射(reflect)出来。
我希望它仅在 Apache 重新启动后才暂存。
最好的方法是什么?
最佳答案
我不会更改 Apache 配置,而是更改 Apache 管理的内容。
它可以显示 git 存储库的内容,但那不应该是完成更改的地方。
你可以有两个仓库:
- 一个是为了改变
- 一个用于在 Apache 重新启动时反射(reflect)更改(即,从第一个开始的 git pull)
即:
git clone first/repo path/to/second/repo
# make Apache serve path/to/second/repo
重启Apache时,在apachectl start之前添加:
cd path/to/second/repo
git pull
关于linux - 如何编辑 Apache 配置以使 git pull 的更改不会立即反射(reflect)出来?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37853008/