Git post-receive hook acts differently to shell

后端 未结 2 933
Happy的楠姐
Happy的楠姐 2021-01-22 00:34

I\'m trying to setup a git repo on my live server to automatically update a subdomain on receive. Using this guide http://toroid.org/ams/git-website-howto.

hooks

2条回答
  •  情深已故
    2021-01-22 01:01

    add cd /var/www/vhosts/domain.com/subdomains/staging/httpdocs to your post-recieve hook.

提交回复
热议问题