mirror of
https://github.com/bspeice/elektricity
synced 2024-11-14 05:48:09 -05:00
11 lines
290 B
Python
11 lines
290 B
Python
from wsgiref.simple_server import make_server
|
|
from conf_parser import build_configuration
|
|
|
|
def start_server():
|
|
app = build_configuration().make_wsgi_app()
|
|
server = make_server('0.0.0.0', 8080, app)
|
|
server.serve_forever()
|
|
|
|
if __name__ == '__main__':
|
|
start_server()
|