让thinkphp框架欢快的跑在tars里面
支持打包发布
支持服务存活上报(服务注册)
thinkphpInTars (https://github.com/dpp2009/thinkphpInTars)
think-swoole (https://github.com/top-think/think-swoole)
TARSPHP (https://github.com/TarsPHP)
Clone 项目 (https://github.com/dpp2009/thinkphpInTars)
安装依赖 composer install
composer install
打包 composer run-script deploy
composer run-script deploy
将打包完成的文件上传tars平台
服务名需要在 ./tars/tars.proto.php 里面正确配置
不使用tars平台下发的端口号,按照thinkphp的方式配置
Last updated 4 years ago
Was this helpful?