mirror of
https://github.com/dataease/dataease.git
synced 2026-05-14 04:12:11 +08:00
chore: 安装脚本增加自定义国际化文件目录
This commit is contained in:
@@ -7,6 +7,7 @@ RUN mkdir -p /opt/apps/config \
|
||||
/opt/dataease2.0/data/static-resource/ \
|
||||
/opt/dataease2.0/data/appearance/ \
|
||||
/opt/dataease2.0/data/exportData/ \
|
||||
/opt/dataease2.0/data/i8n/ \
|
||||
/opt/dataease2.0/data/plugin/
|
||||
|
||||
ADD drivers/* /opt/dataease2.0/drivers/
|
||||
|
||||
@@ -50,8 +50,8 @@ const createI18nOptions = async (): Promise<I18nOptions> => {
|
||||
|
||||
const loadRemoteI18n = async (option: any) => {
|
||||
const name = option.lang.replace('-', '_')
|
||||
// const basePath = import.meta.env.VITE_API_BASEPATH
|
||||
const url = `${PATH_URL}/i18n/custom_${name}_front_${option.name}.js`
|
||||
const path = PATH_URL.startsWith('./') && PATH_URL.length > 2 ? PATH_URL.substring(1) : PATH_URL
|
||||
const url = `${path}/i18n/custom_${name}_front_${option.name}.js`
|
||||
return await import(url)
|
||||
}
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@ services:
|
||||
- ${DE_BASE}/dataease2.0/data/exportData:/opt/dataease2.0/data/exportData
|
||||
- ${DE_BASE}/dataease2.0/data/plugin:/opt/dataease2.0/data/plugin
|
||||
- ${DE_BASE}/dataease2.0/data/font:/opt/dataease2.0/data/font
|
||||
- ${DE_BASE}/dataease2.0/data/i18n:/opt/dataease2.0/data/i18n
|
||||
depends_on:
|
||||
DE_MYSQL_HOST:
|
||||
condition: service_healthy
|
||||
|
||||
@@ -104,7 +104,7 @@ function prepare_de_run_base() {
|
||||
env | grep DE_ >.env
|
||||
|
||||
mkdir -p ${DE_RUN_BASE}/{cache,logs,conf}
|
||||
mkdir -p ${DE_RUN_BASE}/data/{mysql,static-resource,map,etcd_data,geo,appearance,exportData,plugin,font}
|
||||
mkdir -p ${DE_RUN_BASE}/data/{mysql,static-resource,map,etcd_data,geo,appearance,exportData,plugin,font,i18n}
|
||||
mkdir -p ${DE_RUN_BASE}/apisix/logs
|
||||
mkdir -p ${DE_RUN_BASE}/task/logs
|
||||
chmod 777 ${DE_RUN_BASE}/apisix/logs ${DE_RUN_BASE}/data/etcd_data ${DE_RUN_BASE}/task/logs
|
||||
@@ -203,7 +203,7 @@ EOF
|
||||
|
||||
log_content "启动 docker"
|
||||
systemctl enable docker >/dev/null 2>&1; systemctl daemon-reload; systemctl start docker 2>&1 | tee -a ${CURRENT_DIR}/install.log
|
||||
|
||||
|
||||
docker version >/dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
log_content "docker 安装失败"
|
||||
|
||||
Reference in New Issue
Block a user