gpt4 book ai didi

laravel - 无法使用 Supervisor 启动 laravel-echo-server

转载 作者:行者123 更新时间:2023-12-03 20:16:06 24 4
gpt4 key购买 nike

如果我手动运行 laravel-echo-server - 它工作正常。但我无法使用主管运行 laravel-echo-server:我在前端出错

GET http://example.com:6001/socket.io/EIO=3&transport=polling&t=MO25vx0net::ERR_CONNECTION_TIMED_OUT

echoserver.log 已创建但始终为空

我尝试使用 sudo 重新启动和更新主管

/etc/supervisord.conf:
 [program:echo-server]
command=/usr/bin/laravel-echo-server start
dierctory=/var/www/www-root/data/www/example.com
autostart=true
user=root
autorestart=true
stdout_logfile=/var/www/www-root/data/www/example.com/storage/logs/echoserver.log

laravel-echo-server.json:
{
"authHost": "http://example.com",
"authEndpoint": "/broadcasting/auth",
"clients": [
{
"appId": "fe0ee01ccace98c",
"key": "1138421388769fdbbf88293eb329c16a"
}
],
"database": "redis",
"databaseConfig": {
"redis": {
"port": "6379",
"host": "localhost"
},
"sqlite": {
"databasePath": "/database/laravel-echo-server.sqlite"
}
},
"devMode": true,
"host": null,
"port": "6001",
"protocol": "http",
"socketio": {},
"sslCertPath": "",
"sslKeyPath": "",
"sslCertChainPath": "",
"sslPassphrase": "",
"subscribers": {
"http": true,
"redis": true
},
"apiOriginAllow": {
"allowCors": false,
"allowOrigin": "",
"allowMethods": "",
"allowHeaders": ""
}
}

最佳答案

通过替换这个问题解决了

command=/usr/bin/laravel-echo-server start

对此
command=/usr/bin/laravel-echo-server start --dir=/var/www/www-root/data/www/example.com

关于laravel - 无法使用 Supervisor 启动 laravel-echo-server,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54368684/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com