补充正式环境ini参数
This commit is contained in:
parent
bd70b7e1ca
commit
6f06a0a7eb
|
|
@ -258,6 +258,8 @@ def init_with_config():
|
|||
g_redisinfo['ip'] = config.get('redis', 'ip_inner')
|
||||
if config.has_option('rpc', 'host_inner'):
|
||||
g_config['rpc_host'] = config.get('rpc', 'host_inner')
|
||||
if config.has_option('user_db', 'host_inner'):
|
||||
g_user_db['host'] = config.get('user_db', 'host_inner')
|
||||
print(g_dbinfo)
|
||||
print(g_roadnet_db)
|
||||
print(g_cloud_db)
|
||||
|
|
|
|||
|
|
@ -1,15 +1,15 @@
|
|||
[roadnet]
|
||||
;citylist = 110000,130100,130200,140400,150100,320500,321000,330800,330900,341700,350300,350400,350800,370100,440600,440800,441800,445100,450200,450600,420100
|
||||
;citylist = 110000,130100,130200,150100,350300,370100,440600,450200
|
||||
citylist = 350100
|
||||
citylist = 350100,350300,520100
|
||||
;citylist = 110000,130100,130200,150100,350300,370100,440600,450200,421000,370500,532600,140700,140400,430100,440100,370300,320500,140200
|
||||
hot_citylist = 350100
|
||||
hot_citylist = 350100,350300,520100
|
||||
|
||||
[db]
|
||||
host = 82.157.173.20
|
||||
host_inner = 172.21.32.32
|
||||
host = 120.53.125.169
|
||||
host_inner = 172.21.32.21
|
||||
user = root
|
||||
password = pmenJIn7EaK40oThn~~
|
||||
password = pmenJIn7EaK40oThn~~~
|
||||
dbname = tmnet
|
||||
|
||||
[server]
|
||||
|
|
@ -31,9 +31,10 @@ port = 50051
|
|||
|
||||
|
||||
[user_dbinfo]
|
||||
host = 82.157.173.20
|
||||
host = 120.53.125.169
|
||||
host_inner = 172.21.32.21
|
||||
user = root
|
||||
password = pmenJIn7EaK40oThn~~
|
||||
password = pmenJIn7EaK40oThn~~~
|
||||
dbname = user
|
||||
|
||||
[cloud_db]
|
||||
|
|
@ -53,8 +54,8 @@ dbname = tmnet
|
|||
port = 3306
|
||||
|
||||
[roadnet_db]
|
||||
host = 82.157.173.20
|
||||
host_inner = 172.21.32.32
|
||||
host = 120.53.125.169
|
||||
host_inner = 172.21.32.21
|
||||
user = root
|
||||
password = pmenJIn7EaK40oThn~~
|
||||
password = pmenJIn7EaK40oThn~~~
|
||||
dbname = tmnet
|
||||
Loading…
Reference in New Issue