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
494e0ed8
Commit
494e0ed8
authored
Sep 04, 2019
by
张鹏程
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 修改startup.py
parent
6c0c7f14
Pipeline
#927
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
startup.py
startup.py
+1
-3
No files found.
startup.py
View file @
494e0ed8
...
...
@@ -13,7 +13,7 @@ from tornado.options import options, define
define
(
"port"
,
default
=
20010
,
help
=
"run on the given port "
,
type
=
int
)
# define("log_path", default='/tmp', help="log path ", type=str)
define
(
"debug"
,
default
=
True
,
help
=
"enable debug mode"
)
tornado
.
options
.
parse_command_line
()
options
.
parse_command_line
()
from
config
import
settings
from
handler
import
ReportAnalysis_Handler
,
UpLoadFiles_Handler
...
...
@@ -36,7 +36,6 @@ def apps():
if
__name__
==
"__main__"
:
debug
=
options
.
debug
print
(
debug
)
if
debug
:
app
=
apps
()
server
=
HTTPServer
(
app
)
...
...
@@ -46,7 +45,6 @@ if __name__ == "__main__":
IOLoop
.
instance
()
.
start
()
else
:
tornado
.
options
.
parse_command_line
()
app
=
apps
()
http_server
=
tornado
.
httpserver
.
HTTPServer
(
app
)
http_server
.
bind
(
options
.
port
)
...
...
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