I'm new to Git, but I'm learning as I go. So thanks for trying your script :) Though I have some difficulties getting it work (I have no idea if the problems occur because of mod_rewrite or php exec).
My story:
- Script is cloned via Github and is located at www.mydomain.com/deploy
- Webhook made on GitHub and is set as www.mydomain.com/deploy/ (the token set in config)
- The same key is set as secret in the hook. application/json is set, trigger is just "push the event" and Active is checked.
When doing this and pushing to master I unforunately get 404 error under webhooks in Github:
Request URL: http://www.mydomain.com/deploy/
Request method: POST
content-type: application/json
Expect:
User-Agent: GitHub-Hookshot/8b1477d
X-GitHub-Delivery: 20386c80-20e0-11e5-8205-db9ea32af80c
X-GitHub-Event: push
X-Hub-Signature: sha1=063617fb859c437a40a4076ef616985ac662c77f
Content-Length: 0
Content-Type: text/html
Date: Thu, 02 Jul 2015 17:33:03 GMT
Server: Apache/2.2.16
Vary: Accept-Encoding
deepl.oi error log says this:
[2015-07-02 19:33:04 - IP 192.30.252.34]
[ERROR] Security token not correct: deploy/
[STATUS] FAILED – Deployment not finished!
[NOTR] No mails configured.
Can you figure out what is wrong with this? I think it's strange. It looks like the token is incorrect, but it certainly is not. However, it's strange it thinks that the deploy folder (path to deeplio) is a part of the token?
Any ideas, please? :)
Cheers!