File tree Expand file tree Collapse file tree 1 file changed +18
-8
lines changed Expand file tree Collapse file tree 1 file changed +18
-8
lines changed 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:
94
94
f.write(json.dumps(payload))
95
95
96
96
97
- Deploy in Apache
98
- ==================
97
+ Deploy
98
+ ======
99
+
100
+ Apache
101
+ ------
99
102
100
103
To deploy in Apache, just add a ``WSGIScriptAlias `` directive to your
101
104
VirtualHost file:
@@ -126,18 +129,25 @@ And add a Webhook to the WSGI script URL:
126
129
127
130
http://my.site.com/webhooks
128
131
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:
131
137
132
- To deploy in a docker container, you have to expose the port 5000, for
133
- example with the following command:
134
138
::
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
136
141
137
142
You can also mount volume to setup the ``hooks/ `` directory, and the file
138
143
``config.json ``:
144
+
139
145
::
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
141
151
142
152
Debug
143
153
=====
You can’t perform that action at this time.
0 commit comments