call('key:generate'); // 删除上一次保留的数据表 $this->call('migrate:reset'); // 删除上一次保留的文件 $this->call('moon:delete'); Product::$addToSearch = false; /**************************************** * 1. 迁移数据表 * 2. 数据库迁移 * 3. 复制静态资源 * 4. 创建软链接 */ $this->call('migrate'); $this->call('db:seed'); $this->call('moon:copy'); $this->call('storage:link'); // 更新首页数据,防止上一次遗留 $this->call('moon:update-home'); // 生成全文索引 $this->call('add:shop-to-search'); // 直接开启监听队列 // $this->info('queue starting please don`t close cmd windows!!!'); // $this->call('queue:work', ['--tries' => '3']); } }