From 2514bf4638ea15059304013e2a53f695ec414646 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 22 Dec 2019 14:58:49 +0800 Subject: [PATCH] update --- .../Commands/{V2boardInit.php => V2boardInstall.php} | 8 ++++---- readme.md | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) rename app/Console/Commands/{V2boardInit.php => V2boardInstall.php} (90%) diff --git a/app/Console/Commands/V2boardInit.php b/app/Console/Commands/V2boardInstall.php similarity index 90% rename from app/Console/Commands/V2boardInit.php rename to app/Console/Commands/V2boardInstall.php index d96fed89..39759658 100644 --- a/app/Console/Commands/V2boardInit.php +++ b/app/Console/Commands/V2boardInstall.php @@ -7,21 +7,21 @@ use App\Models\User; use App\Utils\Helper; use Illuminate\Support\Facades\DB; -class V2boardInit extends Command +class V2boardInstall extends Command { /** * The name and signature of the console command. * * @var string */ - protected $signature = 'v2board:init'; + protected $signature = 'v2board:install'; /** * The console command description. * * @var string */ - protected $description = 'v2board 初始化'; + protected $description = 'v2board 安装'; /** * Create a new command instance. @@ -41,7 +41,7 @@ class V2boardInit extends Command public function handle() { if (\File::exists(base_path() . '/.lock')) { - abort(500, 'V2board 已安装,如需重新初始化请删除目录下.lock文件'); + abort(500, 'V2board 已安装,如需重新安装请删除目录下.lock文件'); } \Artisan::call('key:generate'); \Artisan::call('config:cache'); diff --git a/readme.md b/readme.md index ab23da92..49016fcd 100755 --- a/readme.md +++ b/readme.md @@ -22,9 +22,9 @@ > ``` 2. 从 `install.sql` 文件中恢复表 3. 执行 `cp .env.example .env` 然后配置它 -4. 执行配置脚本 - > ```shell script - > sh init.sh +4. 执行安装 + > ```install script + > php artisan v2board:install > ``` >