test
This commit is contained in:
parent
29a88fc652
commit
6ada877b7f
5 changed files with 100 additions and 0 deletions
15
test/index.cgi
Executable file
15
test/index.cgi
Executable file
|
@ -0,0 +1,15 @@
|
|||
#! /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')
|
Loading…
Add table
Add a link
Reference in a new issue