https://github.com/btronquo/simple-git-webhook
https://github.com/btronquo/simple-git-webhook
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/btronquo/simple-git-webhook
- Owner: btronquo
- Created: 2020-02-10T11:51:48.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-02-13T09:13:37.000Z (about 5 years ago)
- Last Synced: 2025-02-13T09:38:00.207Z (3 months ago)
- Language: PHP
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SIMPLE GIT WEBHOOK
## Description
The main goal is to have only one entry point to syncronise many differents repositories.
I mixed some code from internet to provide a simple and reusable git webhook script## Prerequisites:
- Git command line available
- Key ssh set on the repository settings
- The repository is cloned and the branch name is set correctly
- have a folder production/ with projects names like `production.myrepository`
- have a folder preproduction/ with projects names like `preproduction.myrepository`## How to ?
- copy `.htaccess.example`, fill with correct env token and rename it to `.htaccess`
- copy `deployer.example.php`, fill with correct informations and rename it to `deployer.php`
- be sure to have the same token set on your github repository settings > webhook
- example with github: you can set a url like that (in settings > webhooks): `https://githook.yourdomain.com/deployer.php?name=myrepository`## Licence
- MIT