例如nginx或Python,php,rails等后端
git --git-dir=~/op/.git --work-tree=~/op pull

git hooks端

位于.git/hooks/post-merge, 表示发生merge(包含git pull)后的操作

#! /bin/bash
sudo /usr/local/openresty/nginx/sbin/nginx -p /home/ubuntu/op -c /home/ubuntu/op/conf/devu -s reload

相关文章:

  • 2021-11-23
  • 2022-01-12
  • 2022-12-23
  • 2021-11-08
  • 2021-05-23
  • 2022-01-18
  • 2022-12-23
  • 2021-12-04
猜你喜欢
  • 2021-06-28
  • 2021-09-01
  • 2022-12-23
  • 2021-07-23
  • 2021-10-12
  • 2022-12-23
  • 2021-06-27
相关资源
相似解决方案