mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
ComposerUpdate
This commit is contained in:
parent
ddd5d2a31e
commit
4e036d0736
8
composer.lock
generated
8
composer.lock
generated
@ -915,12 +915,12 @@
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/zoujingli/ThinkLibrary.git",
|
||||
"reference": "093c05394e9310edfa1b0d4d5d7ccda5f919ad74"
|
||||
"reference": "8faeb22f7b2f9a279911b6497de1c6856b368eba"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/093c05394e9310edfa1b0d4d5d7ccda5f919ad74",
|
||||
"reference": "093c05394e9310edfa1b0d4d5d7ccda5f919ad74",
|
||||
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/8faeb22f7b2f9a279911b6497de1c6856b368eba",
|
||||
"reference": "8faeb22f7b2f9a279911b6497de1c6856b368eba",
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
@ -964,7 +964,7 @@
|
||||
],
|
||||
"description": "ThinkPHP v6.0 Development Library",
|
||||
"homepage": "http://framework.thinkadmin.top",
|
||||
"time": "2020-05-15T06:47:21+00:00"
|
||||
"time": "2020-05-15T07:37:07+00:00"
|
||||
},
|
||||
{
|
||||
"name": "zoujingli/wechat-developer",
|
||||
|
8
vendor/composer/installed.json
vendored
8
vendor/composer/installed.json
vendored
@ -941,12 +941,12 @@
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/zoujingli/ThinkLibrary.git",
|
||||
"reference": "093c05394e9310edfa1b0d4d5d7ccda5f919ad74"
|
||||
"reference": "8faeb22f7b2f9a279911b6497de1c6856b368eba"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/093c05394e9310edfa1b0d4d5d7ccda5f919ad74",
|
||||
"reference": "093c05394e9310edfa1b0d4d5d7ccda5f919ad74",
|
||||
"url": "https://api.github.com/repos/zoujingli/ThinkLibrary/zipball/8faeb22f7b2f9a279911b6497de1c6856b368eba",
|
||||
"reference": "8faeb22f7b2f9a279911b6497de1c6856b368eba",
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
@ -962,7 +962,7 @@
|
||||
"ext-json": "*",
|
||||
"topthink/framework": "^6.0"
|
||||
},
|
||||
"time": "2020-05-15T06:47:21+00:00",
|
||||
"time": "2020-05-15T07:37:07+00:00",
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"think": {
|
||||
|
2
vendor/services.php
vendored
2
vendor/services.php
vendored
@ -1,5 +1,5 @@
|
||||
<?php
|
||||
// This file is automatically generated at:2020-05-15 14:56:28
|
||||
// This file is automatically generated at:2020-05-15 15:40:43
|
||||
declare (strict_types = 1);
|
||||
return array (
|
||||
0 => 'think\\app\\Service',
|
||||
|
@ -76,12 +76,12 @@ class Queue extends Command
|
||||
*/
|
||||
protected function webStopAction()
|
||||
{
|
||||
$keyword = $this->process->think('run -p');
|
||||
if (count($result = $this->process->query($keyword)) < 1) {
|
||||
$root = "{$this->app->getRootPath()}public" . DIRECTORY_SEPARATOR;
|
||||
if (count($result = $this->process->query("-t {$root} {$root}router.php")) < 1) {
|
||||
$this->output->warning("There is no WebServer process to finish");
|
||||
} else foreach ($result as $item) {
|
||||
$this->process->close($item['pid']);
|
||||
$this->output->info("Sending end process {$item['pid']} signal succeeded");
|
||||
$this->output->writeln("Sending end process {$item['pid']} signal succeeded");
|
||||
}
|
||||
}
|
||||
|
||||
@ -92,14 +92,15 @@ class Queue extends Command
|
||||
{
|
||||
$port = $this->input->getOption('port') ?: '80';
|
||||
$host = $this->input->getOption('host') ?: '127.0.0.1';
|
||||
$command = $this->process->think("run -p {$port} -H {$host}");
|
||||
$root = "{$this->app->getRootPath()}public" . DIRECTORY_SEPARATOR;
|
||||
$command = "php -S {$host}:{$port} -t {$root} {$root}router.php";
|
||||
if (count($result = $this->process->query($command)) > 0) {
|
||||
if ($this->process->iswin()) {
|
||||
$this->process->exec("start http://{$host}:{$port}");
|
||||
}
|
||||
$this->output->info("WebServer process {$result['0']['pid']} has started");
|
||||
} else {
|
||||
[$this->process->create($command), usleep(1000)];
|
||||
[$this->process->create($command), usleep(2000)];
|
||||
if (count($result = $this->process->query($command)) > 0) {
|
||||
$this->output->info("WebServer process {$result['0']['pid']} started successfully");
|
||||
if ($this->process->iswin()) {
|
||||
@ -116,8 +117,8 @@ class Queue extends Command
|
||||
*/
|
||||
protected function webStatusAction()
|
||||
{
|
||||
$command = $this->process->think("run -p");
|
||||
if (count($result = $this->process->query($command)) > 0) {
|
||||
$root = "{$this->app->getRootPath()}public" . DIRECTORY_SEPARATOR;
|
||||
if (count($result = $this->process->query("-t {$root} {$root}router.php")) > 0) {
|
||||
$this->output->info("WebServer process {$result[0]['pid']} running");
|
||||
$this->output->write("># {$result[0]['cmd']}");
|
||||
} else {
|
||||
@ -135,7 +136,7 @@ class Queue extends Command
|
||||
$this->output->warning("There is no task process to finish");
|
||||
} else foreach ($result as $item) {
|
||||
$this->process->close($item['pid']);
|
||||
$this->output->info("Sending end process {$item['pid']} signal succeeded");
|
||||
$this->output->writeln("Sending end process {$item['pid']} signal succeeded");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user