mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-07-25 13:06:53 +00:00
add plugin_env file, define plugin config strategy.
This commit is contained in:
parent
c03bd6fe97
commit
6a8ee91834
1
.gitignore
vendored
1
.gitignore
vendored
@ -145,3 +145,4 @@ pilot/nltk_data
|
|||||||
|
|
||||||
logswebserver.log.*
|
logswebserver.log.*
|
||||||
.history/*
|
.history/*
|
||||||
|
.plugin_env
|
14
.plugin_env.template
Normal file
14
.plugin_env.template
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
####################################################################################
|
||||||
|
## [DB-GPT-Bytebase-Plugin] ###
|
||||||
|
#####################################################################################
|
||||||
|
HOST_NAME={your-host-ip, to execute command operate}
|
||||||
|
HOST_USER=root
|
||||||
|
HOST_PASSWORD={your-host-password}
|
||||||
|
SSH_PORT=22
|
||||||
|
|
||||||
|
BYTE_BASE_COOKIE={your-bytebase-cookie}
|
||||||
|
BYTE_BASE_DOMAIN={your-bytebase-server-address}
|
||||||
|
BYTE_BASE_DEFAULT_DEV_INSTANCE=mysql_dev
|
||||||
|
BYTE_BASE_DEFAULT_TEST_INSTANCE=mysql_test
|
||||||
|
BYTE_BASE_DEFAULT_PROD_INSTANCE=mysql_prod
|
||||||
|
DEFAULT_PROJECT_NAME={your-default-project}
|
@ -10,5 +10,6 @@ if "pytest" in sys.argv or "pytest" in sys.modules or os.getenv("CI"):
|
|||||||
|
|
||||||
# Load the users .env file into environment variables
|
# Load the users .env file into environment variables
|
||||||
load_dotenv(verbose=True, override=True)
|
load_dotenv(verbose=True, override=True)
|
||||||
|
load_dotenv(".plugin_env")
|
||||||
|
|
||||||
del load_dotenv
|
del load_dotenv
|
||||||
|
Loading…
Reference in New Issue
Block a user