Skip to content

Commit c74e134

Browse files
Renamed the Test section to Debug and improve it.
1 parent 0410a1a commit c74e134

File tree

1 file changed

+31
-10
lines changed

1 file changed

+31
-10
lines changed

README.rst

Lines changed: 31 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,6 @@ executable and has a shebang. A simple example in Python could be:
9494
f.write(json.dumps(payload))
9595

9696

97-
Test
98-
====
99-
100-
The following will launch the Flask web server in debug mode at port ``5000``.
101-
102-
::
103-
104-
python webhooks.py
105-
106-
10797
Deploy
10898
======
10999

@@ -126,6 +116,37 @@ VirtualHost file:
126116

127117
</VirtualHost>
128118

119+
You can now add that URL to your Github repository settings:
120+
121+
https://github.com/youruser/my.site.com/settings/hooks
122+
123+
And add a Webhook to the WSGI script URL:
124+
125+
::
126+
127+
http://my.site.com/webhooks
128+
129+
130+
Debug
131+
=====
132+
133+
When running in Apache, the ``stderr`` of the hooks that return non-zero will
134+
be logged in Apache's error logs. For example:
135+
136+
::
137+
138+
sudo tail -f /var/log/apache2/error.log
139+
140+
Will log errors in your scripts if printed to ``stderr``.
141+
142+
You can also launch the Flask web server in debug mode at port ``5000``.
143+
144+
::
145+
146+
python webhooks.py
147+
148+
This can help debug problem with the WSGI application itself.
149+
129150

130151
License
131152
=======

0 commit comments

Comments
 (0)