Skip to content

Commit 9c9715a

Browse files
author
zhaoxiang
committed
modified 优化安装脚本
1 parent 9f8bc6c commit 9c9715a

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,13 @@ php think apiadmin:install --db mysql://root:123456@127.0.0.1:3306/apiadmin#utf8
3333
php think apiadmin:adminRouter
3434
```
3535

36-
> 第四步:获取管理后台账号密码
36+
> 第四步:构建后端路由
37+
38+
```
39+
php think migrate:run
40+
```
41+
42+
> 第五步:获取管理后台账号密码
3743
3844
```
3945
cat application/install/lock.ini

application/command/Install.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,6 @@ protected function execute(Input $input, Output $output) {
8282
//生成lock文件,并且写入用户名密码
8383
file_put_contents($lockFile, $authKey);
8484
$output->info('lock文件初始化成功');
85-
86-
Console::call('migrate:run');
87-
$output->info('必要数据初始化成功');
8885
} catch (\PDOException $e) {
8986
$output->highlight($e->getMessage());
9087
}

0 commit comments

Comments
 (0)