diff options
-rwxr-xr-x | GitAutoDeploy.py | 2 | ||||
-rw-r--r-- | README.md | 12 | ||||
-rwxr-xr-x | platforms/linux/initfiles/debianLSBInitScripts/gitautodeploy (renamed from initfiles/debianLSBInitScripts/gitautodeploy) | 0 | ||||
-rw-r--r-- | platforms/linux/initfiles/systemd/gitautodeploy.service (renamed from initfiles/systemd/gitautodeploy.service) | 0 |
4 files changed, 7 insertions, 7 deletions
diff --git a/GitAutoDeploy.py b/GitAutoDeploy.py index 6313eba..7d9ce7c 100755 --- a/GitAutoDeploy.py +++ b/GitAutoDeploy.py @@ -4,5 +4,5 @@ if __name__ == '__main__': import sys import os import gitautodeploy - sys.stderr.write("\033[1;33m[WARNING]\033[0;33m GitAutoDeploy.py is deprecated. Please use \033[1;33m'bin/gad-server%s'\033[0;33m instead.\033[0m\n" % (' ' + ' '.join(sys.argv[1:])).strip()) + sys.stderr.write("\033[1;33m[WARNING]\033[0;33m GitAutoDeploy.py is deprecated. Please use \033[1;33m'python gitautodeploy%s'\033[0;33m instead.\033[0m\n" % (' ' + ' '.join(sys.argv[1:])).strip()) gitautodeploy.main() @@ -1,14 +1,14 @@ # What is it? -GitAutoDeploy.py consists of a small HTTP server that listens for Web hook requests sent from GitHub, GitLab or Bitbucket servers. This application allows you to continuously and automatically deploy you projects each time you push new commits to your repository.</p> +Git-Auto-Deploy consists of a small HTTP server that listens for Web hook requests sent from GitHub, GitLab or Bitbucket servers. This application allows you to continuously and automatically deploy you projects each time you push new commits to your repository.</p>  # How does it work? -When commits are pushed to your Git repository, the Git server will notify ```GitAutoDeploy.py``` by sending a HTTP POST request with a JSON body to a pre configured URL (your-host:8001). The JSON body contains detailed information about the repository and what event that triggered the request. GitAutoDeploy.py parses and validates the request, and if all goes well it issues a ```git pull```. +When commits are pushed to your Git repository, the Git server will notify ```Git-Auto-Deploy``` by sending a HTTP POST request with a JSON body to a pre configured URL (your-host:8001). The JSON body contains detailed information about the repository and what event that triggered the request. ```Git-Auto-Deploy``` parses and validates the request, and if all goes well it issues a ```git pull```. -Additionally, ```GitAutoDeploy.py``` can be configured to execute a shell command upon each successful ```git pull```, which can be used to trigger custom build actions or test scripts.</p> +Additionally, ```Git-Auto-Deploy``` can be configured to execute a shell command upon each successful ```git pull```, which can be used to trigger custom build actions or test scripts.</p> # Getting started ## Dependencies @@ -27,7 +27,7 @@ Additionally, ```GitAutoDeploy.py``` can be configured to execute a shell comman To start logging you can define ```"logfilepath": "/home/hermes/gitautodeploy.log"```. Note that you can`t see triggered command output when log is defined, only script output. If you leave ```"logfilepath"``` empty - everething will work as usual (without log). ## Running the application -```python GitAutoDeploy.py``` +```python gitautodeploy``` ## Command line options @@ -46,9 +46,9 @@ Command line option | Environment variable | Config attribute | Description ## Start automatically on boot ### Crontab -The easiest way to configure your system to automatically start ```GitAutoDeploy.py``` after a reboot is through crontab. Open crontab in edit mode using ```crontab -e``` and add the following: +The easiest way to configure your system to automatically start ```Git-Auto-Deploy``` after a reboot is through crontab. Open crontab in edit mode using ```crontab -e``` and add the following: -```@reboot /usr/bin/python /path/to/GitAutoDeploy.py --daemon-mode --quiet``` +```@reboot /usr/bin/python /path/to/gitautodeploy --daemon-mode --quiet``` ### Debian and Sys-V like init system. diff --git a/initfiles/debianLSBInitScripts/gitautodeploy b/platforms/linux/initfiles/debianLSBInitScripts/gitautodeploy index 9768a69..9768a69 100755 --- a/initfiles/debianLSBInitScripts/gitautodeploy +++ b/platforms/linux/initfiles/debianLSBInitScripts/gitautodeploy diff --git a/initfiles/systemd/gitautodeploy.service b/platforms/linux/initfiles/systemd/gitautodeploy.service index 71cb1c5..71cb1c5 100644 --- a/initfiles/systemd/gitautodeploy.service +++ b/platforms/linux/initfiles/systemd/gitautodeploy.service |