mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update readme.md
This commit is contained in:
parent
bec33113c5
commit
3e6dfd2b13
18
readme.md
18
readme.md
@ -127,30 +127,28 @@ public function index(){
|
||||
|
||||
## 框架指令
|
||||
|
||||
* 执行 `build.cmd` 可更新 `composer` 插件,会删除并替换 `vendor` 目录
|
||||
* 执行 `php think run` 启用本地开发环境,访问 `http://127.0.0.1:8000`
|
||||
* 执行 `php think xadmin:sysmenu` 重写系统菜单并生成新编号并清理已禁用的菜单
|
||||
* 执行 `php think xadmin:package` 将现有 `MySQL` 数据库打包为 `Phinx` 数据库脚本
|
||||
* 执行 `php think xadmin:sysmenu` 重写系统菜单并生成新编号,同时会清理已禁用的菜单数据
|
||||
* 执行 `php think xadmin:fansall` 同步微信粉丝数据,依赖于 `ThinkPlugsWechat` 应用插件
|
||||
* 执行 `php think xadmin:version` 查看当前版本号,显示 `ThinkPHP` 版本及 `ThinkLibrary` 版本
|
||||
* 执行 `php think xadmin:replace` 可以批量替换数据库指定字符字段内容,通常用于文件地址替换
|
||||
* 执行 `php think xadmin:database` 对数据库的所有表 `repair|optimize` 操作,优化并整理数据库碎片
|
||||
* 执行 `php think xadmin:publish` 可自动安装现在模块或已安装应用插件,增加 `--migrate` 参数执行数据库脚本
|
||||
|
||||
#### 1. 守护进程管理(可自建定时任务去守护监听主进程)
|
||||
|
||||
* 执行 `php think xadmin:queue start` [控制]检查创建任务监听服务,建议创建定时任务执行
|
||||
* 执行 `php think xadmin:queue listen` [监听]启动异步任务监听服务
|
||||
* 执行 `php think xadmin:queue status` [控制]查看异步任务监听状态
|
||||
* 执行 `php think xadmin:queue start` [控制]检查创建任务监听服务(建议定时任务执行)
|
||||
* 执行 `php think xadmin:queue query` [控制]查询当前任务相关的进程
|
||||
* 执行 `php think xadmin:queue status` [控制]查看异步任务监听状态
|
||||
* 执行 `php think xadmin:queue stop` [控制]平滑停止所有任务进程
|
||||
|
||||
#### 2. 本地调试管理(可自建定时任务去守护监听主进程)
|
||||
|
||||
* 执行 `php think xadmin:queue webstop` [调试]停止本地调试服务
|
||||
* 执行 `php think xadmin:queue webstart` [调试]开启本地调试服务,建议创建定时任务执行
|
||||
* 执行 `php think xadmin:queue webstart` [调试]开启本地调试服务(建议定时任务执行)
|
||||
* 执行 `php think xadmin:queue webstatus` [调试]查看本地调试状态
|
||||
|
||||
#### 3. 数据库打包为 Phinx 脚本(打包后的脚本需要进行修改)
|
||||
|
||||
* 执行 `php think xadmin:package` [打包]将现有数据库打包为 Phinx 脚本
|
||||
|
||||
## 问题修复
|
||||
|
||||
* 增加 **CORS** 跨域规则配置,配置参数置放于 `config/app.php`,需要更新 `ThinkLibrary`。
|
||||
|
Loading…
x
Reference in New Issue
Block a user