16 lines
272 B
Text
16 lines
272 B
Text
|
#! /usr/bin/env python3
|
||
|
|
||
|
from waitress import serve
|
||
|
|
||
|
|
||
|
def app():
|
||
|
import web
|
||
|
web.print_headers_if_needed()
|
||
|
counter += 1
|
||
|
print('Counter: {}'.format(counter))
|
||
|
|
||
|
|
||
|
if __name__ == '__main__':
|
||
|
counter = 0
|
||
|
serve(app, unix_socket='/var/run/fcgiwrap.socket')
|