File tree Expand file tree Collapse file tree 1 file changed +31
-10
lines changed Expand file tree Collapse file tree 1 file changed +31
-10
lines changed Original file line number Diff line number Diff line change @@ -94,16 +94,6 @@ executable and has a shebang. A simple example in Python could be:
94
94
f.write(json.dumps(payload))
95
95
96
96
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
-
107
97
Deploy
108
98
======
109
99
@@ -126,6 +116,37 @@ VirtualHost file:
126
116
127
117
</VirtualHost>
128
118
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
+
129
150
130
151
License
131
152
=======
You can’t perform that action at this time.
0 commit comments