Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
coco
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
ops
coco
Commits
4fda262a
Commit
4fda262a
authored
Sep 20, 2018
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 修改url
parent
d80fe0ad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
app.py
coco/httpd/app.py
+4
-2
No files found.
coco/httpd/app.py
View file @
4fda262a
...
...
@@ -10,7 +10,9 @@ from coco.httpd.ws import ProxyNamespace, ElfinderNamespace
logger
=
get_logger
(
__file__
)
app
=
Flask
(
__name__
,
template_folder
=
'templates'
,
static_folder
=
'static'
)
app
=
Flask
(
__name__
,
template_folder
=
'templates'
,
static_folder
=
'static'
,
static_url_path
=
'/coco/static'
)
app
.
config
.
update
(
config
)
socket_io
=
SocketIO
()
socket_io
.
on_namespace
(
ProxyNamespace
(
'/ssh'
))
...
...
@@ -18,7 +20,7 @@ socket_io.on_namespace(ElfinderNamespace('/elfinder'))
# init_kwargs = {'async_mode': 'threading'}
init_kwargs
=
{
'async_mode'
:
'eventlet'
,}
socket_io
.
init_app
(
app
,
**
init_kwargs
)
socket_io
.
init_app
(
app
,
**
init_kwargs
)
,
socket_io
.
on_error_default
(
lambda
x
:
logger
.
exception
(
x
))
...
...
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