Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
T
tamp_course_order
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
彭熊
tamp_course_order
Commits
7d7eea10
Commit
7d7eea10
authored
4 years ago
by
pengxiong@wealthgrow.cn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配置5
parent
3367b3e5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
__main__.py
app/api/__main__.py
+8
-1
start.sh
start.sh
+1
-1
No files found.
app/api/__main__.py
View file @
7d7eea10
...
...
@@ -7,7 +7,14 @@
# @Software : PyCharm
# -----------------------------------------------------------------------------
from
app.api.app
import
app
from
app.api.engine
import
env
from
wsgiref
import
simple_server
if
__name__
==
'__main__'
:
app
.
run
(
'0.0.0.0'
,
port
=
80
,
debug
=
True
)
# if env == 'dev':
# app.run('0.0.0.0', port=80, debug=True)
# else:
# app.run('0.0.0.0', port=80, debug=False)
httpd
=
simple_server
.
make_server
(
'0.0.0.0'
,
80
,
app
)
httpd
.
serve_forever
()
This diff is collapsed.
Click to expand it.
start.sh
View file @
7d7eea10
#!/bin/bash
gunicorn
-w
2
-k
gevent
-D
-p
tamp_order.pid
-b
127.0.0.1:8000 app.api.app:api dev
\ No newline at end of file
gunicorn
-D
-p
tamp_order.pid
-b
127.0.0.1:8000 app.api.app:api dev
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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