Skip to content

Commit

Permalink
更新: 更新安装命令
Browse files Browse the repository at this point in the history
  • Loading branch information
Inkedus authored and Inkedus committed May 24, 2021
1 parent 96a6be9 commit 0c90677
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 67 deletions.
10 changes: 10 additions & 0 deletions app/Console/Commands/CodeFec/Install.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ public function handle()
Artisan::call('key:generate');
$this->info('配置成功! 如果需要修改配置请编辑网站根目录下.env文件');
$this->info('请重新运行脚本进行数据库迁移');
$this->error('请重新运行脚本进行数据库迁移');
$this->error('请重新运行脚本进行数据库迁移');
$this->error('请重新运行脚本进行数据库迁移');
} else {
Artisan::call('migrate --force');
$this->info('数据库迁移成功!');
Expand Down Expand Up @@ -119,6 +122,13 @@ public function handle()
]);
Artisan::call("CodeFec:AdminInit");
$this->info("创建完毕");
if ($this->confirm('您是用的国内服务器吗?')) {
$url = "https://e.coding.net/codefec/codefec/CodeFec-Public.git";
}else{
$url = "https://github.com/zhuchunshu/CodeFec-Public.git";
}
shell_exec("git clone ".$url." ".public_path("publics"));
$this->info("public 资源克隆成功");
$this->info('本次安装结束。');
$this->info("请按照教程进行下一步操作, 然后访问: " . config('app.url') . "/" . $pre . " 进入管理后台");
}
Expand Down
67 changes: 0 additions & 67 deletions app/Console/Commands/Test.php

This file was deleted.

0 comments on commit 0c90677

Please sign in to comment.