mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-04-06 03:58:00 +08:00
modified 合并安装步骤
This commit is contained in:
parent
cb37a4cf22
commit
0c40bb17b2
@ -21,20 +21,18 @@ composer create-project apiadmin/apiadmin4
|
||||
你也可以:先获取基础代码 git clone https://gitee.com/apiadmin/ApiAdmin.git 再使用composer安装 composer install
|
||||
```
|
||||
|
||||
> 第二步:检测环境以及配置数据库
|
||||
> 第二步:检测环境以及配置数据库,同时完成数据库迁移
|
||||
|
||||
```
|
||||
php think apiadmin:install --db mysql://root:123456@127.0.0.1:3306/apiadmin#utf8mb4
|
||||
```
|
||||
|
||||
> 第三步:数据库迁移
|
||||
> 第三步:获取管理后台账号密码
|
||||
|
||||
```
|
||||
php think migrate:run
|
||||
cat application/install/lock.ini
|
||||
```
|
||||
|
||||
**注:安装完成后,后台管理员的账号密码请查看:application/install/lock.ini**
|
||||
|
||||
## 灵 感
|
||||
|
||||
首先自我介绍下吧,我是一个PHP程序员,目前就职于某上市集团。我第一份工作是做微信开发的,这也是我入行以来第一次做的商业上线项目,虽然我只是充当了其中一个不是太重要的角色,但是感谢它让我第一次接触了API,也让我第一次对于API产生了浓厚的兴趣。之后的一段时间内甚至疯狂的收集过各种免费的API接口!然而一直只是在用API,却没有为API贡献过些什么。
|
||||
|
@ -3,6 +3,7 @@
|
||||
namespace app\command;
|
||||
|
||||
use app\util\Strs;
|
||||
use think\Console;
|
||||
use think\console\Command;
|
||||
use think\console\Input;
|
||||
use think\console\input\Option;
|
||||
@ -81,6 +82,8 @@ class Install extends Command {
|
||||
//生成lock文件,并且写入用户名密码
|
||||
file_put_contents($lockFile, "lock");
|
||||
$output->info('lock文件初始化成功');
|
||||
|
||||
Console::call('migrate:run');
|
||||
} catch (\PDOException $e) {
|
||||
$output->highlight($e->getMessage());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user