almost working
This commit is contained in:
@@ -22,7 +22,7 @@ class Handler(BaseHTTPRequestHandler):
|
|||||||
|
|
||||||
# Rebuild site
|
# Rebuild site
|
||||||
subprocess.run(["zola", "build", "--force"], cwd="/site/src", check=False)
|
subprocess.run(["zola", "build", "--force"], cwd="/site/src", check=False)
|
||||||
subprocess.run(["sh", "-c", "cp -r /site/src/public/* /usr/share/nginx/html/"], shell=True, check=False)
|
subprocess.run("cp -r /site/src/public/* /usr/share/nginx/html/", shell=True, check=False)
|
||||||
|
|
||||||
self.send_response(200)
|
self.send_response(200)
|
||||||
self.end_headers()
|
self.end_headers()
|
||||||
|
Reference in New Issue
Block a user