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
8bff8a43
Commit
8bff8a43
authored
4 years ago
by
wang zhengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
5c889a60
rebuild
manage
manage-public
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
engine.py
app/api/engine.py
+5
-5
config.yaml
app/config/config.yaml
+6
-0
No files found.
app/api/engine.py
View file @
8bff8a43
...
...
@@ -17,7 +17,7 @@ from sqlalchemy import create_engine
from
sqlalchemy.orm
import
sessionmaker
,
scoped_session
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
()
CFG_FILEPATH
=
work_dir
+
'/app/config/config.yaml'
...
...
@@ -95,10 +95,10 @@ redis = redis.StrictRedis(
password
=
config
[
env
][
'redis'
][
'password'
]
)
redis_host
=
config
[
env
][
'
redis
'
][
'host'
],
redis_port
=
config
[
env
][
'
redis
'
][
'port'
],
redis_db
=
config
[
env
][
'
redis
'
][
'db'
],
redis_password
=
config
[
env
][
'
redis
'
][
'password'
]
redis_host
=
config
[
env
][
'
celery
'
][
'host'
],
redis_port
=
config
[
env
][
'
celery
'
][
'port'
],
redis_db
=
config
[
env
][
'
celery
'
][
'db'
],
redis_password
=
config
[
env
][
'
celery
'
][
'password'
]
logging
.
basicConfig
(
level
=
logging
.
INFO
,
filename
=
work_dir
+
config
[
env
][
'log'
][
'filename'
],
...
...
This diff is collapsed.
Click to expand it.
app/config/config.yaml
View file @
8bff8a43
...
...
@@ -69,6 +69,12 @@ prod:
port
:
6379
db
:
0
password
:
'
@imeng123'
celery
:
host
:
118.190.63.109
port
:
56379
db
:
0
password
:
'
qimeng123'
oss
:
imgs_url_prefix
:
https://tamper.tanpuyun.com/hangjiapc/report/productionenv/ReportTempImg/
pdf_url_prefix
:
https://tamper.tanpuyun.com/hangjiapc/report/productionenv/AppHoldReport/
...
...
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