Commit e022d424 authored by Fardale's avatar Fardale

"Real" CI server !

parent cca7fe82
#!/usr/bin/python3
import http.server
import subprocess
import sys
def ssh(host, command):
subprocess.Popen(["ssh", "%s" % host, command], shell=False)
PORT = 80
server_address = ("", PORT)
server = http.server.HTTPServer
handler = http.server.SimpleHTTPRequestHandler
print("Serveur actif sur le port :", PORT)
httpd = server(server_address, handler)
while True:
httpd.handle_request()
ssh("01.dptinfo.ens-cachan.fr", "cd projet_genielog/the_dungeon_project/; git pull")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment