Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
evm-store
Project overview
Project overview
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
wanli
evm-store
Commits
8e48dbda
Commit
8e48dbda
authored
Jul 28, 2021
by
wanli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🌈
style(): 修改新版应用商店配置方式
parent
e13571a0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
4 deletions
+15
-4
tools/build_out/application/config.py
tools/build_out/application/config.py
+2
-2
tools/build_out/manager.py
tools/build_out/manager.py
+13
-2
No files found.
tools/build_out/application/config.py
View file @
8e48dbda
...
...
@@ -8,7 +8,7 @@ class ProductionConfig(object):
EPK_DIR
=
"D:
\\
projects
\\
scriptiot
\\
evm_app_store_files
\\
epks"
UPLOAD_ROOT_DIR
=
"D:
\\
projects
\\
scriptiot
\\
evm_app_store_files"
UPLOAD_ALLOWED
=
set
([
'doc'
,
'docs'
,
'csv'
,
'xls'
,
'xlsx'
])
BIND
=
'127.0.0.1:300
0
'
BIND
=
'127.0.0.1:300
1
'
WORKERS
=
multiprocessing
.
cpu_count
()
*
2
+
1
WORKER_CONNECTIONS
=
10000
BACKLOG
=
64
...
...
@@ -47,7 +47,7 @@ class DevelopConfig(object):
EPK_DIR
=
"D:
\\
projects
\\
scriptiot
\\
evm_app_store_files
\\
epks"
UPLOAD_ROOT_DIR
=
"D:
\\
projects
\\
scriptiot
\\
evm_app_store_files"
UPLOAD_ALLOWED
=
set
([
'doc'
,
'docs'
,
'csv'
,
'xls'
,
'xlsx'
])
BIND
=
'127.0.0.1:300
0
'
BIND
=
'127.0.0.1:300
1
'
WORKERS
=
2
WORKER_CONNECTIONS
=
1000
BACKLOG
=
64
...
...
tools/build_out/manager.py
View file @
8e48dbda
'''
Author: your name
Date: 2021-07-15 09:33:39
LastEditTime: 2021-07-28 19:56:22
LastEditors: your name
Description: In User Settings Edit
FilePath:
\
evm-store
\t
ools
\b
uild_out
\
manager.py
'''
'''
Author: your name
Date: 2021-06-15 17:40:09
LastEditTime: 2021-06-30 18:09:51
LastEditors: Please set LastEditors
...
...
@@ -20,6 +28,9 @@ app = create_app(config)
migrate
=
Migrate
(
app
,
db
)
manager
=
Manager
(
app
)
host
,
port
=
tuple
(
config
.
BIND
.
split
(
":"
))
print
(
"===============>"
,
host
,
port
)
@
manager
.
command
def
run
():
"""
...
...
@@ -29,7 +40,7 @@ def run():
# app.logger.setLevel(app.config.get('LOG_LEVEL', logging.INFO))
http_server
=
HTTPServer
(
WSGIContainer
(
app
))
http_server
.
listen
(
3000
,
address
=
'127.0.0.1'
,
xheaders
=
True
)
http_server
.
listen
(
int
(
port
),
address
=
host
,
xheaders
=
True
)
IOLoop
.
instance
()
.
start
()
@
manager
.
command
...
...
@@ -39,7 +50,7 @@ def debug():
To use: python3 manager.py debug
"""
# app.logger.setLevel(logging.DEBUG)
app
.
run
(
debug
=
True
,
port
=
3000
,
host
=
'127.0.0.1'
)
app
.
run
(
debug
=
True
,
port
=
int
(
port
),
host
=
host
)
if
__name__
==
'__main__'
:
manager
.
run
()
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