* Fix roadrunner error.
This commit is contained in:
@@ -34,3 +34,4 @@ test/runtime/*
|
||||
test/www
|
||||
!/**/.gitkeep
|
||||
.scannerwork
|
||||
bin/roadrunner/rr
|
||||
|
||||
+11
-6
@@ -1,7 +1,12 @@
|
||||
version: '3'
|
||||
|
||||
metrics:
|
||||
address: '127.0.0.1:2112'
|
||||
|
||||
service:
|
||||
cron:
|
||||
command: php cron-worker.php
|
||||
process_num: 4
|
||||
exec_timeout: 0
|
||||
remain_after_exit: true
|
||||
restart_sec: 1
|
||||
cron:
|
||||
command: php cron-worker.php
|
||||
process_num: 2
|
||||
exec_timeout: 0
|
||||
remain_after_exit: true
|
||||
restart_sec: 1
|
||||
|
||||
@@ -4,10 +4,18 @@
|
||||
|
||||
安装 RoadRunner: <https://roadrunner.dev/docs/intro-install>
|
||||
|
||||
Composer: `composer update`
|
||||
Composer: `composer install`
|
||||
|
||||
## 获取执行文件
|
||||
|
||||
```shell
|
||||
composer get-rr
|
||||
```
|
||||
|
||||
## 启动服务
|
||||
|
||||
```shell
|
||||
rr serve
|
||||
composer serve
|
||||
# or
|
||||
./rr serve
|
||||
```
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
{
|
||||
"require": {
|
||||
"spiral/roadrunner": "^2.6",
|
||||
"nyholm/psr7": "^1.4"
|
||||
"spiral/roadrunner": "^2023.1",
|
||||
"nyholm/psr7": "^1.4",
|
||||
"spiral/roadrunner-cli": "^2.5"
|
||||
},
|
||||
"scripts": {
|
||||
"get-rr": "./vendor/bin/rr get-binary",
|
||||
"serve": "./rr serve -c .rr.yaml"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,19 +12,19 @@
|
||||
* @link http://www.zentao.net
|
||||
*/
|
||||
/* Set the error reporting. */
|
||||
error_reporting(0);
|
||||
//error_reporting(0);
|
||||
|
||||
/* Load the framework. */
|
||||
include '../framework/router.class.php';
|
||||
include '../framework/control.class.php';
|
||||
include '../framework/model.class.php';
|
||||
include '../framework/helper.class.php';
|
||||
include '../../framework/router.class.php';
|
||||
include '../../framework/control.class.php';
|
||||
include '../../framework/model.class.php';
|
||||
include '../../framework/helper.class.php';
|
||||
|
||||
/* Log the time and define the run mode. */
|
||||
$startTime = getTime();
|
||||
|
||||
/* Instance the app. */
|
||||
$app = router::createApp('pms', dirname(__DIR__), 'router');
|
||||
$app = router::createApp('pms', dirname(__DIR__, 2), 'router');
|
||||
|
||||
/* Run the app. */
|
||||
$common = $app->loadCommon();
|
||||
|
||||
@@ -255,7 +255,7 @@ class baseRouter
|
||||
* @var string
|
||||
* @access public
|
||||
*/
|
||||
public $viewType;
|
||||
public $viewType = 'html';
|
||||
|
||||
/**
|
||||
* 全局$config对象。
|
||||
|
||||
Reference in New Issue
Block a user