server.php 327 B

123456789
  1. #!/usr/bin/env php
  2. <?php
  3. #php think worker:server
  4. #composer config -g repo.packagist composer https://packagist.phpcomposer.com
  5. #composer require topthink/think-worker
  6. define('APP_PATH', __DIR__ . '/application/');
  7. define('BIND_MODULE','act/Worker');
  8. // 加载框架引导文件
  9. require __DIR__ . '/thinkphp/start.php';