rasaboot / server.py
Ubuntu
first commit
c8c0c7c
raw
history blame
297 Bytes
import http.server
import socketserver
import os
PORT = 8080
web_dir = os.path.join(os.path.dirname(__file__), 'web')
os.chdir(web_dir)
Handler = http.server.SimpleHTTPRequestHandler
httpd = socketserver.TCPServer(("0.0.0.0", PORT), Handler)
print("serving at port", PORT)
httpd.serve_forever()