Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
F
fund_report
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
彭熊
fund_report
Commits
6abd6d5b
Commit
6abd6d5b
authored
Jan 22, 2021
by
pengxiong
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/manage' into manage
parents
13604582
8bff8a43
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
6 deletions
+12
-6
engine.py
app/api/engine.py
+5
-5
celery.py
app/celery.py
+1
-1
config.yaml
app/config/config.yaml
+6
-0
No files found.
app/api/engine.py
View file @
6abd6d5b
...
@@ -17,7 +17,7 @@ from sqlalchemy import create_engine
...
@@ -17,7 +17,7 @@ from sqlalchemy import create_engine
from
sqlalchemy.orm
import
sessionmaker
,
scoped_session
from
sqlalchemy.orm
import
sessionmaker
,
scoped_session
from
sqlalchemy.pool
import
NullPool
from
sqlalchemy.pool
import
NullPool
env
=
sys
.
argv
[
-
1
]
if
sys
.
argv
[
-
1
]
in
[
"dev"
,
"test"
,
"prod"
]
else
"
test
"
env
=
sys
.
argv
[
-
1
]
if
sys
.
argv
[
-
1
]
in
[
"dev"
,
"test"
,
"prod"
]
else
"
prod
"
work_dir
=
os
.
getcwd
()
work_dir
=
os
.
getcwd
()
CFG_FILEPATH
=
work_dir
+
'/app/config/config.yaml'
CFG_FILEPATH
=
work_dir
+
'/app/config/config.yaml'
...
@@ -95,10 +95,10 @@ redis = redis.StrictRedis(
...
@@ -95,10 +95,10 @@ redis = redis.StrictRedis(
password
=
config
[
env
][
'redis'
][
'password'
]
password
=
config
[
env
][
'redis'
][
'password'
]
)
)
redis_host
=
config
[
env
][
'
redis
'
][
'host'
],
redis_host
=
config
[
env
][
'
celery
'
][
'host'
],
redis_port
=
config
[
env
][
'
redis
'
][
'port'
],
redis_port
=
config
[
env
][
'
celery
'
][
'port'
],
redis_db
=
config
[
env
][
'
redis
'
][
'db'
],
redis_db
=
config
[
env
][
'
celery
'
][
'db'
],
redis_password
=
config
[
env
][
'
redis
'
][
'password'
]
redis_password
=
config
[
env
][
'
celery
'
][
'password'
]
logging
.
basicConfig
(
level
=
logging
.
INFO
,
logging
.
basicConfig
(
level
=
logging
.
INFO
,
filename
=
work_dir
+
config
[
env
][
'log'
][
'filename'
],
filename
=
work_dir
+
config
[
env
][
'log'
][
'filename'
],
...
...
app/celery.py
View file @
6abd6d5b
...
@@ -11,7 +11,7 @@ from app.utils.jinjia2html_v2 import DataIntegrate
...
@@ -11,7 +11,7 @@ from app.utils.jinjia2html_v2 import DataIntegrate
celery_app
=
Celery
(
__name__
)
celery_app
=
Celery
(
__name__
)
celery_conf
=
"redis://:{}@{}:{}/{}"
.
format
(
redis_password
,
redis_host
[
0
],
redis_port
[
0
],
"
1
"
)
celery_conf
=
"redis://:{}@{}:{}/{}"
.
format
(
redis_password
,
redis_host
[
0
],
redis_port
[
0
],
"
3
"
)
celery_app
.
conf
.
update
({
"broker_url"
:
celery_conf
,
"result_backend"
:
celery_conf
})
celery_app
.
conf
.
update
({
"broker_url"
:
celery_conf
,
"result_backend"
:
celery_conf
})
...
...
app/config/config.yaml
View file @
6abd6d5b
...
@@ -69,6 +69,12 @@ prod:
...
@@ -69,6 +69,12 @@ prod:
port
:
6379
port
:
6379
db
:
0
db
:
0
password
:
'
@imeng123'
password
:
'
@imeng123'
celery
:
host
:
118.190.63.109
port
:
56379
db
:
0
password
:
'
qimeng123'
oss
:
oss
:
imgs_url_prefix
:
https://tamper.tanpuyun.com/hangjiapc/report/productionenv/ReportTempImg/
imgs_url_prefix
:
https://tamper.tanpuyun.com/hangjiapc/report/productionenv/ReportTempImg/
pdf_url_prefix
:
https://tamper.tanpuyun.com/hangjiapc/report/productionenv/AppHoldReport/
pdf_url_prefix
:
https://tamper.tanpuyun.com/hangjiapc/report/productionenv/AppHoldReport/
...
...
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