Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
T
tamp_course_order
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
彭熊
tamp_course_order
Commits
c89a8601
Commit
c89a8601
authored
Dec 01, 2020
by
pengxiong@wealthgrow.cn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配置
parent
f6f6783b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
engine.py
app/api/engine.py
+2
-2
config.yaml
app/config/config.yaml
+6
-3
No files found.
app/api/engine.py
View file @
c89a8601
...
...
@@ -50,8 +50,8 @@ redis = redis.Redis(
)
logging
.
basicConfig
(
level
=
logging
.
INFO
,
filename
=
work_dir
+
config
[
env
][
'log'
][
'filename'
],
filemode
=
config
[
env
][
'log'
][
'filemode'
],
#
filename=work_dir + config[env]['log']['filename'],
#
filemode=config[env]['log']['filemode'],
format
=
config
[
env
][
'log'
][
'format'
],
datefmt
=
config
[
env
][
'log'
][
'datefmt'
]
)
...
...
app/config/config.yaml
View file @
c89a8601
...
...
@@ -10,6 +10,7 @@ dev:
host
:
redis
port
:
6379
db
:
0
password
:
log
:
filename
:
/logs/tamp_course_order.log
filemode
:
a
...
...
@@ -28,9 +29,10 @@ test:
user
:
root
password
:
'
@imeng123'
redis
:
host
:
localhost
port
:
6379
host
:
redis.caixiaoquan.com
port
:
5
6379
db
:
0
password
:
qimeng123
log
:
filename
:
/logs/tamp_course_order.log
filemode
:
a
...
...
@@ -49,9 +51,10 @@ prod:
user
:
tamp_pay
password
:
'
@imeng123'
redis
:
host
:
localhost
host
:
r-uf6atruhdbq89enqz0.redis.rds.aliyuncs.com
port
:
6379
db
:
0
password
:
@
imeng123
log
:
filename
:
/logs/tamp_course_order.log
filemode
:
a
...
...
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