Skip to content

Commit

Permalink
临时修改BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
xiyoo0812 committed Nov 17, 2023
1 parent 7d8c9d8 commit 47a7540
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions bin/config/quanta.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ QUANTA_CLUSTER = 2
QUANTA_HOST_IP = "10.98.8.59"

--mongo地址
QUANTA_MONGO_URL = "mongodb://root:MTAE379673#@10.96.8.100:27017"
QUANTA_MONGO_DB = "mongodb://root:MTAE379673#@10.96.8.100:27017"

--redis地址
QUANTA_REDIS_URL = "redis://root:[email protected]:6379"
QUANTA_REDIS_DB = "redis://root:[email protected]:6379"

--企业微信地址
QUANTA_WECHAT_URL = "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=ee6d97c5-477d-436f-83db-dd5361a5e8bd"
12 changes: 6 additions & 6 deletions bin/template/database.conf
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ quanta启动环境配置
--单个连接串格式: driver://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]
--options格式: key1=value1&key2=value2

{{% if QUANTA_MONGO_URL then %}}
{{% if QUANTA_MONGO_DB then %}}
--mongo
set_env("QUANTA_MONGO_URL", "{{%= QUANTA_MONGO_URL %}}/quanta_{{%= QUANTA_CLUSTER %}}")
set_env("QUANTA_MONGO_URL", "{{%= QUANTA_MONGO_DB %}}/quanta_{{%= QUANTA_CLUSTER %}}")
{{% end %}}

{{% if QUANTA_MYSQL_URL then %}}
{{% if QUANTA_MYSQL_DB then %}}
--mysql
set_env("QUANTA_MYSQL_URL", "{{%= QUANTA_MYSQL_URL %}}/quanta_{{%= QUANTA_CLUSTER %}}")
set_env("QUANTA_MYSQL_URL", "{{%= QUANTA_MYSQL_DB %}}/quanta_{{%= QUANTA_CLUSTER %}}")
{{% end %}}

{{% if QUANTA_REDIS_URL then %}}
{{% if QUANTA_REDIS_DB then %}}
--redis
set_env("QUANTA_REDIS_URL", "{{%= QUANTA_REDIS_URL %}}")
set_env("QUANTA_REDIS_URL", "{{%= QUANTA_REDIS_DB %}}")
{{% end %}}

--AUTOINCKEY
Expand Down

0 comments on commit 47a7540

Please sign in to comment.