Skip to content

xmisao/xwebhookexe

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 

xwebhookexe

Tiny HTTP server execute command when received webhook. This web server is implemented by golang http module.

xwebhookexe -b 203.0.113.0 -p 8888 -u /webhook -e "cd /path/to/repos && git pull origin master"

In this example, xwebhookexe boot up at address 203.0.133.0 and await connection on port 8888. If it will be accessed to /webhook, then execute cd /path/to/repos && gitpull origin master.

Usage is here. This is displayed by xwebhookexe --help.

Usage of ./xwebhookexe:
  -b string
        Bind address.
  -e string
        Execute command by $SHELL. (default "true")
  -p int
        Listen port. (default 8080)
  -u string
        Handle URL. (default "/")

About

Tiny HTTP server which execute command when received webhook

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages