2019-07-06 23:00:00 -07:00
|
|
|
#!/usr/bin/python3
|
|
|
|
from flup.server.fcgi import WSGIServer
|
2019-08-23 21:34:42 -07:00
|
|
|
from rpiWebApp import app
|
|
|
|
import logging
|
2019-07-06 23:00:00 -07:00
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
app.debug = True
|
2019-08-23 21:34:42 -07:00
|
|
|
logging.basicConfig(filename="app.log", format="%(levelname)s:%(name)s:%(message)s")
|
2019-07-06 23:00:00 -07:00
|
|
|
WSGIServer(app, bindAddress='/run/matt/rpiWebApp/fcgi.sock').run()
|