Просмотр исходного кода

Merge pull request #672 from visuddhinanda/laravel

🎉 create change-logs
visuddhinanda 4 лет назад
Родитель
Сommit
dfb90be97d
2 измененных файлов с 32 добавлено и 4 удалено
  1. 18 4
      README.md
  2. 14 0
      change-logs.md

+ 18 - 4
README.md

@@ -101,19 +101,33 @@ DB_PASSWORD=你的数据库密码
 #### public/app/config.php
 #### public/app/config.php
 
 
 复制 `<项目目录>/public/app/config.example.php` 改文件名为`config.php`
 复制 `<项目目录>/public/app/config.example.php` 改文件名为`config.php`
-修改`config.php`,为你的db配置
+
+修改`config.php`
+
+**db 设置**
 ```
 ```
 define("Database",[
 define("Database",[
 	"type"=>"pgsql",
 	"type"=>"pgsql",
 	"server"=>"localhost",
 	"server"=>"localhost",
 	"port"=>5432,
 	"port"=>5432,
-	"name"=>"你的数据库名",
+	"name"=>"<database name>",
 	"sslmode" => "disable",
 	"sslmode" => "disable",
-	"user" => "postgres",
-	"password" => "你的数据库密码"
+	"user" => "<user name>",
+	"password" => "<your db password>"
 ]);
 ]);
 ```
 ```
 
 
+**Redis 设置**
+```
+define("Redis",[
+	"host" => "<host ip>",
+	"port" => <port>,
+	"password" => "<redis password>",
+	"prefix"=>"aaa://"
+]);
+```
+
+
 #### public/app/config.migrate.php
 #### public/app/config.migrate.php
 
 
 复制 `<项目目录>/public/app/config.migrate.example.php` 改文件名为`config.migrate.php`
 复制 `<项目目录>/public/app/config.migrate.example.php` 改文件名为`config.migrate.php`

+ 14 - 0
change-logs.md

@@ -0,0 +1,14 @@
+# Changelog
+All notable changes to this project will be documented in this file.
+
+The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
+and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+
+## [Unreleased]
+
+## [1.0.0] - 2022-01-13
+- add redis setting to README.md
+- add .env-global/.env
+- .env -> /.env in .gitignore
+- rename public/app/table.php to table.config.php
+- rename public/app/dir.php to dir.config.php