Skip to content

Commit

Permalink
remove dbobj.conf, add config to app.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
hzwy23 committed Dec 6, 2017
1 parent 839e8d4 commit d88ba9c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 29 deletions.
20 changes: 19 additions & 1 deletion conf/app.conf
Expand Up @@ -12,4 +12,22 @@ httpscertfile = "./conf/rui.crt"
httpskeyfile = "./conf/rui.key"
enablefcgi = false
graceful = false
enablehttp = false
enablehttp = false

###日志级别
## debug
## info
Hauth.log.level = debug

#database configuration:
# mysql
DB.type=mysql
DB.tns = "tcp(118.31.46.174:3306)/test"
DB.user = root
DB.passwd="xzPEh+SfFL3aimN0zGNB9w=="

### oracle
#DB.type= oracle
#DB.tns = "172.168.171.200/bigdata"
#DB.user = ca
#DB.passwd="wJAolGiEoiiF5Ll7yvPKqA=="
27 changes: 0 additions & 27 deletions conf/dbobj.conf

This file was deleted.

2 changes: 1 addition & 1 deletion utils/logs/logs.go
Expand Up @@ -79,7 +79,7 @@ func init() {
//GetDetails log dir from environment
logpath := os.Getenv("HBIGDATA_HOME")

conf, err := config.GetConfig(path.Join(logpath, "conf", "asofdate.conf"))
conf, err := config.GetConfig(path.Join(logpath, "conf", "app.conf"))
if err != nil {
fmt.Errorf("%v", err)
log = back_emc
Expand Down

0 comments on commit d88ba9c

Please sign in to comment.