gatewayworker 中的默认项目名YourApp如何改成别的?直接文件夹名会导致无法启动

cxk

gatewayworker 中的默认项目名YourApp如何改成别的?直接文件夹名会导致无法启动,
我尝试修改了YourApp为别的,导致无法启动

86 1 0
1个回答

北月

修改 composer.json,然后执行 composer dump-autoload

{
    "name"  : "workerman/gateway-worker-demo",
    "keywords": ["distributed","communication"],
    "homepage": "http://www.workerman.net",
    "license" : "MIT",
    "require": {
        "workerman/gateway-worker" : ">=3.0.0"
    },
    "autoload": {
        "psr-4": {
            "" : "./",
            "" : "./Applications/YourApp/" //改这里
        }
    }
}
  • 暂无评论
🔝