diff --git a/crmeb/public/install/index.php b/crmeb/public/install/index.php index 93b5fe3fb..4982e7839 100755 --- a/crmeb/public/install/index.php +++ b/crmeb/public/install/index.php @@ -27,8 +27,18 @@ if (phpversion() >= '8.0.0') { date_default_timezone_set('PRC'); error_reporting(E_ALL & ~E_NOTICE); header('Content-Type: text/html; charset=UTF-8'); - -//数据库 +//mysql数据库配置容器中获取 +$MYSQL_HOST_IP = getenv('MYSQL_HOST_IP')?:'127.0.0.1'; +$MYSQL_PORT = getenv('MYSQL_PORT')?:'3306'; +$MYSQL_USER = getenv('MYSQL_USER')?:'root'; +$MYSQL_PASSWORD = getenv('MYSQL_PASSWORD')?:'123456'; +$MYSQL_DATABASE = getenv('MYSQL_DATABASE')?:'crmeb'; +//redis配置容器中获取 +$REDIS_HOST_IP = getenv('REDIS_HOST_IP')?:'127.0.0.1'; +$REDIS_PORT = getenv('REDIS_PORT')?:'6379'; +$REDIS_DATABASE = getenv('REDIS_DATABASE')?:0; +$REDIS_PASSWORD = getenv('REDIS_PASSWORD')?:''; +//数据库; $sqlFile = 'crmeb.sql'; $configFile = '.env'; if (!file_exists(SITE_DIR . 'install/' . $sqlFile) || !file_exists(SITE_DIR . 'install/' . $configFile)) { diff --git a/crmeb/public/install/templates/step3.php b/crmeb/public/install/templates/step3.php index 639181b84..6fa408187 100755 --- a/crmeb/public/install/templates/step3.php +++ b/crmeb/public/install/templates/step3.php @@ -29,21 +29,21 @@
| 管理员密码: | + placeholder="请输入密码(至少6个字符)" placeholder-class="pl-style" onblur="checkForm()"> |
请输入至少6个字符密码
@@ -118,6 +114,11 @@
|
| 演示数据: | ++ | |
| 服务器地址: | -+ |
redis服务器地址,一般为127.0.0.1
|
|
| 端口号: | -+ |
redis端口,默认为6379
@@ -151,7 +152,7 @@
| |
| 数据库: | -+ |
redis数据库,默认为0,一般不做更改
@@ -159,7 +160,7 @@
| |
| 数据库密码: | -+ |
redis数据库密码
|
@@ -273,7 +274,7 @@
jumpButton(){
- this.$refs.mianscroll.scrollTop = this.$refs.mianscroll.clientHeight
+ this.$refs.mianscroll.scrollTop = this.$refs.mianscroll.clientHeight
},
submitForm() {
this.mysqlDbPwd().then(res => {