summaryrefslogtreecommitdiffstats
path: root/GitAutoDeploy.py
diff options
context:
space:
mode:
Diffstat (limited to 'GitAutoDeploy.py')
-rwxr-xr-xGitAutoDeploy.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/GitAutoDeploy.py b/GitAutoDeploy.py
index fce534c..7142cfb 100755
--- a/GitAutoDeploy.py
+++ b/GitAutoDeploy.py
@@ -3,6 +3,7 @@
import json, urlparse, sys, os, signal, socket
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
from subprocess import call
+from threading import Timer
class GitAutoDeploy(BaseHTTPRequestHandler):
@@ -35,6 +36,9 @@ class GitAutoDeploy(BaseHTTPRequestHandler):
def do_POST(self):
urls = self.parseRequest()
+ Timer(1.0, self.do_process, [urls]).start()
+
+ def do_process(self, urls):
for url in urls:
paths = self.getMatchingPaths(url)
for path in paths: