Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eumel8/webhook-deploy
https://github.com/eumel8/webhook-deploy
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/eumel8/webhook-deploy
- Owner: eumel8
- Created: 2015-12-29T17:49:11.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-29T19:11:27.000Z (almost 9 years ago)
- Last Synced: 2024-10-16T08:48:04.884Z (2 months ago)
- Language: PHP
- Size: 1000 Bytes
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Webhook Deploy
## A git based continuous integration tool for web sites### Usecase
install and update a web site as virtual host under the help of git### Prerequisites
deployment webserver on the same environment where the deploy.php is hosted### Installation
* copy deploy.php on webserver reachable from github.com (recommended with https)
* generate ssh-key for httpd-user and put the key in the home dir (i.e. /var/lib/wwwrun/.ssh)
* setup a json webhook in the git repo with the content of your web site you want to deploy
use as URL the https:/deploy.php
* adjust repo URL, branch, web site, location and secret
* generate optionally /var/lib/wwwrun/.ssh/config```
Host *
StrictHostKeyChecking no
PasswordAuthentication no
```### Operation
Commit to the web site repo and check if the webhook is working. After the first git clone the directory with
the web content should be there and you can configure the new vHost in the webserver configuration.Put a .htaccess file in the web root to protect the git internal information
```
RedirectMatch 404 /\.git
```