mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 11:19:56 +00:00
no message
This commit is contained in:
parent
f54bad5d79
commit
d353d33107
@ -52,7 +52,7 @@ class ElasticSearch
|
|||||||
$this->client = ClientBuilder::fromConfig($config);
|
$this->client = ClientBuilder::fromConfig($config);
|
||||||
|
|
||||||
if ($index) {
|
if ($index) {
|
||||||
$this->index = $index;
|
$this->index = $index . env("ES_INDEX_SUFFIX", "");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
2
cmd
2
cmd
@ -440,6 +440,8 @@ if [ $# -gt 0 ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
# 设置ES索引后缀
|
||||||
|
env_set ES_INDEX_SUFFIX "$(rand_string 6)"
|
||||||
# 启动容器
|
# 启动容器
|
||||||
[[ "$(arg_get port)" -gt 0 ]] && env_set APP_PORT "$(arg_get port)"
|
[[ "$(arg_get port)" -gt 0 ]] && env_set APP_PORT "$(arg_get port)"
|
||||||
$COMPOSE up php -d
|
$COMPOSE up php -d
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user