no message

This commit is contained in:
kuaifan 2025-03-06 17:11:32 +08:00
parent f54bad5d79
commit d353d33107
2 changed files with 3 additions and 1 deletions

View File

@ -52,7 +52,7 @@ class ElasticSearch
$this->client = ClientBuilder::fromConfig($config);
if ($index) {
$this->index = $index;
$this->index = $index . env("ES_INDEX_SUFFIX", "");
}
}

2
cmd
View File

@ -440,6 +440,8 @@ if [ $# -gt 0 ]; then
exit 1
fi
done
# 设置ES索引后缀
env_set ES_INDEX_SUFFIX "$(rand_string 6)"
# 启动容器
[[ "$(arg_get port)" -gt 0 ]] && env_set APP_PORT "$(arg_get port)"
$COMPOSE up php -d