Commit e022d424 authored by Fardale's avatar Fardale

"Real" CI server !

parent cca7fe82
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:
ssh("", "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