Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
L
luna
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
luna
Commits
ffb56db4
Commit
ffb56db4
authored
Jan 08, 2017
by
liuzheng712
Committed by
ibuler
May 18, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update fix websocket
parent
5e858976
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
.gitignore
.gitignore
+1
-0
.access_key
luna/keys/.access_key
+0
-2
run_server.py
run_server.py
+6
-3
No files found.
.gitignore
View file @
ffb56db4
.idea
*.pyc
*.pyo
luna/keys/.access_key
luna/keys/.access_key
deleted
100644 → 0
View file @
5e858976
600f6241-5574-407f-b39a-c616fb2b14eb:48496c51-08fd-4eca-8c47-68b18aad72e9
\ No newline at end of file
run_server.py
View file @
ffb56db4
...
...
@@ -3,12 +3,14 @@
from
config
import
Config
from
luna
import
app
import
subprocess
from
luna
import
app
,
socket_io
#
import subprocess
app
.
config
.
from_object
(
Config
)
host
=
app
.
config
[
'BIND_HOST'
]
port
=
app
.
config
[
'LISTEN_PORT'
]
if
__name__
==
'__main__'
:
subprocess
.
call
(
'gunicorn -k eventlet -b
%
s:
%
s -w 4 -n luna run_server:app'
%
(
host
,
port
),
shell
=
True
)
# subprocess.call('gunicorn -k eventlet -b %s:%s -w 4 -n luna run_server:app' % (host, port), shell=True)
app
.
bootstrap
()
socket_io
.
run
(
app
,
host
=
'0.0.0.0'
)
\ No newline at end of file
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