Git post-receive hook acts differently to shell

后端 未结 2 905
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 00:53

    The permissions on the worktree do not allow it to be read which causes the fatal: This operation must be run in a work tree error.

    0 讨论(0)
  • 2021-01-22 01:01

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

    0 讨论(0)
提交回复
热议问题