diff --git a/lib/docker.py b/lib/docker.py index 4bd925e..87967a9 100644 --- a/lib/docker.py +++ b/lib/docker.py @@ -11,7 +11,7 @@ class handler(BaseHTTPRequestHandler): self.send_response(200) self.send_header('Content-type','text/plain') self.end_headers() - if (time.time() - os.path.getmtime('./lib/deploy.sh') > 86400): + if (time.time() - os.path.getmtime('./lib/deploy.sh') > 86400) or self.path == '/pull': subprocess.call(['git', 'pull']) with open('./lib/deploy.sh') as f: self.wfile.write(bytes(f.read(), 'utf-8'))