-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwsgi.py
31 lines (24 loc) · 836 Bytes
/
wsgi.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import sys
# print(sys.executable)
# path = '/var/www/python/santanu'
# if path not in sys.path:
# sys.path.append(path)
# sys.path.insert(0, '/var/www/html/Pywww/flaskmvc')
#
from project import socketio as sc,app as application
#from flask_cors import CORS, cross_origin
#from flask_socketio import SocketIO
# application.secret_key = 'onehotonekill'
# CORS(application)
# socketio = SocketIO(application)
#if __name__ == '__main__':
# socketio.run(application, host="0.0.0.0", port=80)
# socketio = SocketIO(application)
# def application(environ,start_response):
# status = '200 OK'
# html = ("<html>kkktest</html>").encode()
# sys.executable.encode()
# html = html.encode()
# response_header = [('Content-type','text/html')]
# start_response(status,response_header)
# return [html]