This repository sets up a simple Flask server to receive Bitbucket webhooks and notifies you via Skype channel
- Mac OS X 10.8+
- Python
- Pip
- ngrok (Note:
brew install ngrokinstalls an old version. Use latest ngrok download instead, for development only) - virtualenv (optional)
- Clone this repository and set it as the current working directory.
- (Optional, but good practice) Create a virtual environment.
mkvirtualenv webhook-listenerOnce created, useworkon webhook-listenerto restore the virtual environment. pip install -r REQUIREMENTS.txtloads required libraries.- Edit
.envfor a ngrok subdomain of your choosing. If you are using a free ngrok account, justrm .env. honcho startto start the ngrok tunnel and Flask server (python listener.pyto start without ngrok)- Configure your webhook (default:
http://bbwebhook.ngrok.io/webhook) on your repo in Bitbucket. If you are using a free ngrok account, you can find an assigned URL on the ngrok dashboard under the Tunnels Online section. If you copy from the dashboard, be sure to add/webhookto the end when you paste into Bitbucket.
- Access locally on http://localhost:5000
- Access remotely on http://bbwebhook.ngrok.io (subdomain is set in
.env) - Access ngrok interface on http://localhost:4040
This repo uses: