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
0171a8b5
Commit
0171a8b5
authored
Jul 26, 2021
by
wanliofficial
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新服务器上一些文件
parent
cca4da40
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
177902 additions
and
6582 deletions
+177902
-6582
backend/running.log
backend/running.log
+177803
-6580
tools/build_out/application/config.py
tools/build_out/application/config.py
+97
-0
tools/build_out/manager.py
tools/build_out/manager.py
+1
-1
tools/build_out/result.json
tools/build_out/result.json
+1
-1
No files found.
backend/running.log
View file @
0171a8b5
This diff is collapsed.
Click to expand it.
tools/build_out/application/config.py
0 → 100644
View file @
0171a8b5
'''
Author: your name
Date: 2021-06-30 17:43:46
LastEditTime: 2021-07-22 10:17:02
LastEditors: Please set LastEditors
Description: In User Settings Edit
FilePath:
\
evm-store
\t
ools
\b
uild_out
\a
pplication
\
config.py
'''
# -*- coding: utf-8 -*-
import
os
import
multiprocessing
MODE
=
'develop'
# develop: 开发模式; production: 生产模式
class
ProductionConfig
(
object
):
EPK_DIR
=
"/home/evm/workspace/evm_app_store_files/epks"
UPLOAD_ROOT_DIR
=
"/home/evm/workspace/evm_app_store_files"
UPLOAD_ALLOWED
=
set
([
'doc'
,
'docs'
,
'csv'
,
'xls'
,
'xlsx'
])
BIND
=
'127.0.0.1:3000'
WORKERS
=
multiprocessing
.
cpu_count
()
*
2
+
1
WORKER_CONNECTIONS
=
10000
BACKLOG
=
64
TIMEOUT
=
60
LOG_LEVEL
=
'INFO'
LOG_DIR_PATH
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'logs'
)
LOG_FILE_MAX_BYTES
=
1024
*
1024
*
100
LOG_FILE_BACKUP_COUNT
=
10
PID_FILE
=
'run.pid'
REDIS_HOST
=
'127.0.0.1'
REDIS_PORT
=
6379
REDIS_PASSWORD
=
''
REDIS_MAX_CONNECTIONS
=
100
JWT_HEADER_NAME
=
'Authorization'
JWT_HEADER_TYPE
=
'Bearer'
JWT_SECRET_KEY
=
'6UdxRgs2hvWpTLmj027d5vt7dXXQX'
JWT_ACCESS_TOKEN_EXPIRES
=
7200
JWT_REFRESH_TOKEN_EXPIRES
=
1800
MYSQL_DB
=
'qianjing_iot'
MYSQL_HOST
=
'127.0.0.1'
MYSQL_PORT
=
3306
MYSQL_USER
=
'debian-sys-maint'
MYSQL_PWD
=
'XMigC2B2uugnv18y'
SQLALCHEMY_BINDS
=
{
'app-store'
:
'sqlite:///../evue-store.db'
}
SQLALCHEMY_DATABASE_URI
=
'sqlite:///../evue-store.db'
def
__init__
(
self
):
super
()
.
__init__
()
self
.
SQLALCHEMY_DATABASE_URI
=
'sqlite:///../evue-store.db'
class
DevelopConfig
(
object
):
EPK_DIR
=
"/home/evm/workspace/evm_app_store_files/epks"
UPLOAD_ROOT_DIR
=
"/home/evm/workspace/evm_app_store_files"
UPLOAD_ALLOWED
=
set
([
'doc'
,
'docs'
,
'csv'
,
'xls'
,
'xlsx'
])
BIND
=
'127.0.0.1:3000'
WORKERS
=
2
WORKER_CONNECTIONS
=
1000
BACKLOG
=
64
TIMEOUT
=
30
LOG_LEVEL
=
'DEBUG'
LOG_DIR_PATH
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'logs'
)
LOG_FILE_MAX_BYTES
=
1024
*
1024
LOG_FILE_BACKUP_COUNT
=
1
PID_FILE
=
'run.pid'
REDIS_HOST
=
'127.0.0.1'
REDIS_PORT
=
6379
REDIS_PASSWORD
=
''
REDIS_MAX_CONNECTIONS
=
100
JWT_HEADER_NAME
=
'Authorization'
JWT_HEADER_TYPE
=
'Bearer'
JWT_SECRET_KEY
=
'6UdxRgs2hvWpTLmj027d5vt7dXXQX'
JWT_ACCESS_TOKEN_EXPIRES
=
7200
JWT_REFRESH_TOKEN_EXPIRES
=
1800
MYSQL_DB
=
'qianjing_iot'
MYSQL_HOST
=
'127.0.0.1'
MYSQL_PORT
=
3306
MYSQL_USER
=
'debian-sys-maint'
MYSQL_PWD
=
'XMigC2B2uugnv18y'
SQLALCHEMY_BINDS
=
{
'app-store'
:
'sqlite:///../evue-store.db'
}
SQLALCHEMY_DATABASE_URI
=
'sqlite:///../evue-store.db'
SQLALCHEMY_TRACK_MODIFICATIONS
=
True
SQLALCHEMY_ECHO
=
False
def
__init__
(
self
):
super
()
.
__init__
()
self
.
SQLALCHEMY_DATABASE_URI
=
'sqlite:///../evue-store.db'
if
MODE
==
'production'
:
config
=
ProductionConfig
()
else
:
config
=
DevelopConfig
()
tools/build_out/manager.py
View file @
0171a8b5
...
...
@@ -59,7 +59,7 @@ def debug():
(
r"/ws/v1/notify"
,
NotifyHandler
),
(
r'.*'
,
FallbackHandler
,
dict
(
fallback
=
wsgi_app
))
],
**
{
'debug'
:
True
,
})
application
.
listen
(
300
0
,
address
=
'127.0.0.1'
,
xheaders
=
True
)
application
.
listen
(
300
1
,
address
=
'127.0.0.1'
,
xheaders
=
True
)
# 主进程退出信号
signal
.
signal
(
signal
.
SIGINT
,
raise_graceful_exit
)
...
...
tools/build_out/result.json
View file @
0171a8b5
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