增加自定写入 js 和 py 类型环境变量

This commit is contained in:
whyour
2024-07-02 00:44:48 +08:00
parent 791cf657b5
commit 71ba1534f2
3 changed files with 20 additions and 1 deletions
+3 -1
View File
@@ -74,7 +74,9 @@ init_env() {
import_config() {
[[ -f $file_config_user ]] && . $file_config_user
[[ -f $file_env ]] && . $file_env
if [[ $LOAD_ENV != 'false' ]] && [[ -f $file_env ]]; then
. $file_env
fi
ql_base_url=${QlBaseUrl:-"/"}
ql_port=${QlPort:-"5700"}