File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -94,8 +94,11 @@ executable and has a shebang. A simple example in Python could be:
9494 f.write(json.dumps(payload))
9595
9696
97- Deploy in Apache
98- ==================
97+ Deploy
98+ ======
99+
100+ Apache
101+ ------
99102
100103To deploy in Apache, just add a ``WSGIScriptAlias `` directive to your
101104VirtualHost file:
@@ -126,18 +129,25 @@ And add a Webhook to the WSGI script URL:
126129
127130 http://my.site.com/webhooks
128131
129- Deploy in a Docker container
130- ============================
132+ Docker
133+ ------
134+
135+ To deploy in a Docker container you have to expose the port 5000, for example
136+ with the following command:
131137
132- To deploy in a docker container, you have to expose the port 5000, for
133- example with the following command:
134138::
135- docker run -d --name webhooks -p 5000:5000 cgal/python-github-webhooks
139+
140+ docker run -d --name webhooks -p 5000:5000 python-github-webhooks
136141
137142You can also mount volume to setup the ``hooks/ `` directory, and the file
138143``config.json ``:
144+
139145::
140- docker run -d --name webhooks -v /path/to/my/hooks:/src/hooks -v /path/to/my/config.json:/src/config.json -p 5000:5000 cgal/python-github-webhooks
146+
147+ docker run -d --name webhooks \
148+ -v /path/to/my/hooks:/src/hooks \
149+ -v /path/to/my/config.json:/src/config.json \
150+ -p 5000:5000 python-github-webhooks
141151
142152Debug
143153=====
You can’t perform that action at this time.
0 commit comments