mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-03 14:10:57 +08:00
update .env.example DB_USERNAME
This commit is contained in:
@@ -67,7 +67,10 @@ if [ "$SERVICE_NAME" = "php" ]; then
|
|||||||
cp -r "$SOURCE_DIR" "$TARGET_DIR"
|
cp -r "$SOURCE_DIR" "$TARGET_DIR"
|
||||||
sed -i 's|LOG_FILE.*|LOG_FILE=php://stdout|g' "$ROOT_PATH/.env.example"
|
sed -i 's|LOG_FILE.*|LOG_FILE=php://stdout|g' "$ROOT_PATH/.env.example"
|
||||||
if [ -f "$ENV_FILE" ]; then
|
if [ -f "$ENV_FILE" ]; then
|
||||||
|
echo_info "update LOG_FILE + DB_HOST + REDIS_HOST ..."
|
||||||
sed -i 's|LOG_FILE.*|LOG_FILE=php://stdout|g' "$ENV_FILE"
|
sed -i 's|LOG_FILE.*|LOG_FILE=php://stdout|g' "$ENV_FILE"
|
||||||
|
sed -i 's|DB_HOST.*|DB_HOST=mysql|g' "$ENV_FILE"
|
||||||
|
sed -i 's|REDIS_HOST.*|REDIS_HOST=redis|g' "$ENV_FILE"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo_success ".env file: $ENV_FILE and vendor autoload file: $VENDOR_AUTOLOAD_FILE already exists, skip copy install file ..."
|
echo_success ".env file: $ENV_FILE and vendor autoload file: $VENDOR_AUTOLOAD_FILE already exists, skip copy install file ..."
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ DB_CONNECTION=mysql
|
|||||||
DB_HOST=127.0.0.1
|
DB_HOST=127.0.0.1
|
||||||
DB_PORT=3306
|
DB_PORT=3306
|
||||||
DB_DATABASE=nexusphp
|
DB_DATABASE=nexusphp
|
||||||
DB_USERNAME=root
|
DB_USERNAME=nexusphp
|
||||||
DB_PASSWORD=
|
DB_PASSWORD=nexusphp
|
||||||
|
|
||||||
BROADCAST_DRIVER=log
|
BROADCAST_DRIVER=log
|
||||||
CACHE_DRIVER=redis
|
CACHE_DRIVER=redis
|
||||||
|
|||||||
Reference in New Issue
Block a user