File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ Codeigniter4-RoadRunner provides the synchroniztion of the Request and Response
1313## Install
1414
1515### Prerequisites
16- 1 . CodeIgniter Framework 4.1.9 ^
16+ 1 . CodeIgniter Framework 4.2.0 ^
17172 . Composer
18183 . Enable ` php-curl ` extension
19194 . Enable ` php-zip ` extension
@@ -152,12 +152,14 @@ You can reference the `.rr.yaml` settings below to lower the amount of Worker to
152152
153153` ` ` yaml
154154http:
155- address: 0.0.0.0:8080
156- workers:
157- command: "php psr-worker.php"
158- pool:
159- numWorkers: 1
160- # maxJobs: 500
155+ address: "0.0.0.0:8080"
156+ static:
157+ dir: "./public"
158+ forbid: [".htaccess", ".php"]
159+ pool:
160+ num_workers: 1
161+ # max_jobs: 64
162+ # debug: true
161163` ` `
162164
163165# ## Database Connection
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ Codeigniter4-RoadRunner 提供的是 Roadrunner-Worker 與 Codeigniter4 在 Requ
1111## 安裝
1212
1313### 需求
14- 1 . CodeIgniter Framework 4.1.9 以上
14+ 1 . CodeIgniter Framework 4.2.0 以上
15152 . Composer
16163 . 安裝並開啟 php-curl 擴充套件
17174 . 安裝並開啟 php-zip 擴充套件
@@ -155,12 +155,14 @@ class Home extends BaseController
155155
156156` ` ` yaml
157157http:
158- address: 0.0.0.0:8080
159- workers:
160- command: "php psr-worker.php"
161- pool:
162- numWorkers: 1
163- # maxJobs: 500
158+ address: "0.0.0.0:8080"
159+ static:
160+ dir: "./public"
161+ forbid: [".htaccess", ".php"]
162+ pool:
163+ num_workers: 1
164+ # max_jobs: 64
165+ # debug: true
164166` ` `
165167
166168# ## 資料庫連線
Original file line number Diff line number Diff line change 2222 "prefer-stable" : true ,
2323 "require" : {
2424 "php" : " ^7.4 || ^8.0" ,
25- "codeigniter4/framework" : " ^4.1.9 " ,
25+ "codeigniter4/framework" : " ^4.2.0 " ,
2626 "spiral/roadrunner" : " ^2" ,
2727 "spiral/dumper" : " ^2.8" ,
2828 "laminas/laminas-diactoros" : " ^2.8" ,
3939 },
4040 "config" : {
4141 "allow-plugins" : {
42- "phpstan/extension-installer" : true
42+ "phpstan/extension-installer" : true ,
43+ "composer/package-versions-deprecated" : true
4344 }
4445 }
4546}
You can’t perform that action at this time.
0 commit comments