Introduction
Let the swoft framework run happily in the tars
- Support packaged publishing
- Support service survival reporting (service registration)
Related projects
- SWOFT (https://github.com/swoft-cloud/swoft)
- TARSPHP (https://github.com/TarsPHP/TarsPHP)
- TARSPHP DOCKER (https://github.com/tangramor/docker-tars)
use
- Clone Project
- Install dependency
composer install - Packaging
composer run-script deploy - Upload tars platform
Configuration instructions
- The service name needs to be correctly configured in ./tars/tars.proto.php (appName&serverName) and ./src/.env (PNAME) (the two places must be configured correctly and consistently)
- Swoft's port number does not use the port number issued by the tars platform (because swoft can support multi-port and multi-protocol)
Restart issue
- Using docker-tars, pcre may not be enabled. Run php --ri swoole to see if pcre => enabled exists. Run yum install pcre-devel, and then recompile swoole! !