I’ve pushed a website to my remote server via Git but got the error
cannot run post-receive: No such file or directory
So the stuff is on the server, it has just not been deployed to my /public folder.
I do however have a post-receive file so I am not sure why it was not found. Now I thought all I need to do is manually run this post-receive hook to do the checkout though I don’t know how…
A hook is an executable shell script. You can execute it from the command line if you need to run it by hand, although constructing the expected
stdininuput is somewhat tedious if your repo has more than one head (that is, you use branches). There should be a low-level command to do this for you, but I don’t know this offhand.Assuming a bash shell and a single branch in your git repo…
…the above should work just like the real thing.