boesing/mezzio-httphandlerrunner-roadrunner 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

boesing/mezzio-httphandlerrunner-roadrunner

Composer 安装命令:

composer require boesing/mezzio-httphandlerrunner-roadrunner

包简介

Adds native HTTP handler runner for mezzio projects to work with spiral/roadrunner

README 文档

README

Build Status

This library provides an implementation to run mezzio via spiral/roadrunner.

Installation

Run the following to install this library:

$ composer require boesing/mezzio-httphandlerrunner-roadrunner

Creating roadrunner configuration

server:
  command: "php -dopcache.enable_cli=1 -dopcache.validate_timestamps=0 vendor/bin/laminas roadrunner:run"

http:
  address: "localhost:8080"
  pool:
    num_workers: 8

logs:
  mode: production
  channels:
    http:
      level: info # Log all http requests, set to info to disable
    server:
      level: debug # Everything written to worker stderr is logged

A list of available configuration parameters can be found in the spiral/roadrunner-binary repository on github.

Retrieve roadrunner binary

To be able to run roadrunner, you need to fetch the roadrunner binary. Use the following command to do so for your environment: vendor/bin/rr get-binary

NOTE: By doing so, a rr binary will be fetched to your current working directory. That binary only works for your current environment. So when you execute that command on MacOS, you will receive a binary prepared to run on MacOS and which is not compatible with Ubuntu for example.

Run

To run your project, simply execute the binary fetched in the Retrieve roadrunner binary installation step:

./rr serve

This should ramp up the amount of workers configured in the Creating roadrunner configuration installation step and listens to the configured port.

Support

统计信息

  • 总下载量: 14
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2022-01-31

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固