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
44e59085
Commit
44e59085
authored
Mar 14, 2021
by
wanli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
c8ec8ab5
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
27 additions
and
9 deletions
+27
-9
.gitignore
.gitignore
+2
-2
README.md
README.md
+20
-1
backend/app/setting.py
backend/app/setting.py
+1
-1
backend/config.ini
backend/config.ini
+1
-1
backend/controller/apps_manager.py
backend/controller/apps_manager.py
+1
-1
backend/controller/download_manager.py
backend/controller/download_manager.py
+1
-1
backend/deploy.py
backend/deploy.py
+1
-1
backend/utils/tools_epk.py
backend/utils/tools_epk.py
+0
-1
No files found.
.gitignore
View file @
44e59085
...
...
@@ -40,8 +40,8 @@ backend/scheduler.db
backend/*.db-journal
backend/backup/*
backend/upload/
backend/uploads
backend/static/
uploads
backend/uploads
/
backend/static/
backend/config.ini
release/
...
...
README.md
View file @
44e59085
# evm-store
EVM应用商店
# 启动项目
1.
创建虚拟环境
```
cd backend
python3 -m venv ./venv
source venv/bin/activate
```
如果需要退出虚拟环境,命令是:
```
deactivate
```
2.
安装依赖
```
pip3 install -r requirements.txt
```
backend/app/setting.py
View file @
44e59085
...
...
@@ -26,7 +26,7 @@ config = dict(
TABLE_PREFIX
=
'evm_store_'
,
MD5_SALT
=
"EhuqUkwV"
,
UPLOAD_SERVER
=
"{}://{}:{}/"
.
format
(
conf
.
get
(
'uploads'
,
'protocol'
),
conf
.
get
(
'uploads'
,
'host'
),
conf
.
get
(
'uploads'
,
'port'
)),
UPLOAD_PATH
=
conf
.
get
(
'uploads'
,
'upload_path'
),
UPLOAD_PATH
=
os
.
getcwd
(
),
UPLOAD_DIR
=
conf
.
get
(
'uploads'
,
'upload_dir'
),
TEMPLATE_PATH
=
os
.
path
.
join
(
os
.
getcwd
(),
"static"
),
STATIC_PATH
=
os
.
path
.
join
(
os
.
getcwd
(),
"static"
),
...
...
backend/config.ini
View file @
44e59085
...
...
@@ -2,7 +2,7 @@
port
=
80
host
=
store.evmiot.com
protocol
=
http
upload_path
=
/www/wwwroot/store.evmiot.com
upload_path
=
./
upload_dir
=
uploads
netdisc
=
netdisc
...
...
backend/controller/apps_manager.py
View file @
44e59085
...
...
@@ -24,7 +24,7 @@ class AppsManager(object):
def
add
(
self
,
data
):
with
db_session
:
result
=
Apps
.
get
(
app_name
=
data
.
get
(
"app_name"
))
result
=
Apps
.
get
(
app_name
=
data
.
get
(
"app_name"
)
,
is_delete
=
False
)
if
result
:
return
False
,
"app_name has been exists."
...
...
backend/controller/download_manager.py
View file @
44e59085
...
...
@@ -39,7 +39,7 @@ class DownloadManager(object):
def
add
(
self
,
data
):
with
db_session
:
app
=
Apps
.
get
(
id
=
data
.
get
(
"app"
))
app
=
Apps
.
get
(
id
=
data
.
get
(
"app"
)
,
is_delete
=
False
)
if
not
app
:
return
False
,
"app does not found"
...
...
backend/deploy.py
View file @
44e59085
...
...
@@ -62,7 +62,7 @@ def update_nginx_conf():
elif
content
.
find
(
" server_name localhost;"
)
!=
-
1
:
dst
.
write
(
" server_name {};
\n
"
.
format
(
conf
.
get
(
'uploads'
,
'host'
)))
elif
content
.
find
(
" root html;"
)
!=
-
1
:
dst
.
write
(
" root {};
\n
"
.
format
(
conf
.
get
(
'uploads'
,
'upload_path'
)))
dst
.
write
(
" root {};
\n
"
.
format
(
os
.
getcwd
(
)))
else
:
dst
.
write
(
content
)
print
(
target_file
,
source_file
)
...
...
backend/utils/tools_epk.py
View file @
44e59085
...
...
@@ -188,7 +188,6 @@ class EpkApp(object):
"buff_length"
:
len
(
epkFileBytes
)
}
pprint
.
pprint
(
ret
)
result
=
ret
return
result
...
...
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