File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,10 @@ if [ "$SERVICE_NAME" = "php" ]; then
6767 cp -r " $SOURCE_DIR " " $TARGET_DIR "
6868 sed -i ' s|LOG_FILE.*|LOG_FILE=php://stdout|g' " $ROOT_PATH /.env.example"
6969 if [ -f " $ENV_FILE " ]; then
70+ echo_info " update LOG_FILE + DB_HOST + REDIS_HOST ..."
7071 sed -i ' s|LOG_FILE.*|LOG_FILE=php://stdout|g' " $ENV_FILE "
72+ sed -i ' s|DB_HOST.*|DB_HOST=mysql|g' " $ENV_FILE "
73+ sed -i ' s|REDIS_HOST.*|REDIS_HOST=redis|g' " $ENV_FILE "
7174 fi
7275 else
7376 echo_success " .env file: $ENV_FILE and vendor autoload file: $VENDOR_AUTOLOAD_FILE already exists, skip copy install file ..."
Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ DB_CONNECTION=mysql
1111DB_HOST = 127.0.0.1
1212DB_PORT = 3306
1313DB_DATABASE = nexusphp
14- DB_USERNAME = root
15- DB_PASSWORD =
14+ DB_USERNAME = nexusphp
15+ DB_PASSWORD = nexusphp
1616
1717BROADCAST_DRIVER = log
1818CACHE_DRIVER = redis
You can’t perform that action at this time.
0 commit comments