Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
credit-report-api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
credit-report-api
Commits
73379778
Commit
73379778
authored
Aug 23, 2019
by
张鹏程
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改为多线程
parent
b342e0ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
startup.py
startup.py
+12
-12
No files found.
startup.py
View file @
73379778
...
@@ -36,19 +36,19 @@ def apps():
...
@@ -36,19 +36,19 @@ def apps():
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
app
=
apps
()
#
app = apps()
server
=
HTTPServer
(
app
)
#
server = HTTPServer(app)
[
i
.
setFormatter
(
LogFormatter
())
for
i
in
logging
.
getLogger
()
.
handlers
]
#
[i.setFormatter(LogFormatter()) for i in logging.getLogger().handlers]
tornado
.
options
.
parse_command_line
()
#
tornado.options.parse_command_line()
# #== 本地调试
# #== 本地调试
app
.
listen
(
20011
)
#
app.listen(20011)
IOLoop
.
instance
()
.
start
()
#
IOLoop.instance().start()
#
tornado.options.parse_command_line()
tornado
.
options
.
parse_command_line
()
#
app = apps()
app
=
apps
()
#
http_server = tornado.httpserver.HTTPServer(app)
http_server
=
tornado
.
httpserver
.
HTTPServer
(
app
)
#
http_server.bind(options.port)
http_server
.
bind
(
options
.
port
)
#
http_server.start()
http_server
.
start
()
#
tornado.ioloop.IOLoop.instance().start()
tornado
.
ioloop
.
IOLoop
.
instance
()
.
start
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment