Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
douban-api-proxy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
captainwong
douban-api-proxy
Commits
089a85d7
Commit
089a85d7
authored
Mar 07, 2017
by
Jack Darlington
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into personal
# Conflicts: # cps.py
parents
21b1a450
4b59eab3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
cps.py
cps.py
+8
-1
No files found.
cps.py
View file @
089a85d7
...
...
@@ -14,12 +14,19 @@ from cps import web
from
tornado.wsgi
import
WSGIContainer
from
tornado.httpserver
import
HTTPServer
from
tornado.ioloop
import
IOLoop
from
gevent.wsgi
import
WSGIServer
if
__name__
==
'__main__'
:
if
web
.
ub
.
DEVELOPMENT
:
web
.
app
.
run
(
host
=
"0.0.0.0"
,
port
=
web
.
ub
.
config
.
config_port
,
debug
=
True
)
else
:
web
.
app
.
run
(
host
=
"0.0.0.0"
,
port
=
web
.
ub
.
config
.
config_port
)
if
len
(
sys
.
argv
)
>
1
and
sys
.
argv
[
1
]
==
'-g'
:
http_server
=
WSGIServer
((
''
,
web
.
ub
.
config
.
config_port
),
web
.
app
)
http_server
.
serve_forever
()
else
:
http_server
=
HTTPServer
(
WSGIContainer
(
web
.
app
))
http_server
.
listen
(
web
.
ub
.
config
.
config_port
)
IOLoop
.
instance
()
.
start
()
if
web
.
helper
.
global_task
==
0
:
web
.
app
.
logger
.
info
(
"Performing restart of Calibre-web"
)
...
...
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