Skip to content

Commit 6eb553e

Browse files
Minor change in documentation style.
1 parent 3292ce6 commit 6eb553e

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

README.rst

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff 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

100103
To deploy in Apache, just add a ``WSGIScriptAlias`` directive to your
101104
VirtualHost 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

137142
You 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

142152
Debug
143153
=====

0 commit comments

Comments
 (0)