From a255f71b099690317d624c30374624155dba8db0 Mon Sep 17 00:00:00 2001 From: xchenhao Date: Sun, 6 Oct 2019 11:27:14 +0800 Subject: [PATCH] add env file --- .gitignore | 1 + README.md | 1 + backend/web/index.php | 3 +-- common/config/env_bac.php | 4 ++++ frontend/web/index.php | 3 +-- 5 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 common/config/env_bac.php diff --git a/.gitignore b/.gitignore index 7f7e3e5..02f821c 100755 --- a/.gitignore +++ b/.gitignore @@ -6,5 +6,6 @@ console/runtime/* +common/config/env.php common/config/main-local.php common/config/db.php diff --git a/README.md b/README.md index c1cfa52..6ce4ee2 100755 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ composer install # 创建数据库 cp common/config/main-local-bac.php common/config/main-local.php cp common/config/db_bac.php common/config/db.php +cp common/config/env_bac.php common/config/env.php # 调整 common/config/db.php 中的数据库配置(主机/库名/用户名及密码) # 执行 database/main.sql 中 SQL 语句 diff --git a/backend/web/index.php b/backend/web/index.php index 6038167..d63ab37 100755 --- a/backend/web/index.php +++ b/backend/web/index.php @@ -1,7 +1,6 @@