Laravel-echo-sever Deploy | Fórum | School of Net

Deseja poder participar de nosso fórum e tirar todas as suas dúvidas?
Clique aqui e assine nosso plano de acesso ilimitado. Saiba mais.

por Elvis

1 mês, 3 semanas atrás Elvis

Laravel-echo-sever Deploy

Apliquei o broadcasting em desenvolvimento e funcionou! Mas como conectar o laravel-echo-sever do laradock na Digital Ocean? se não tiver como usar o do laradock como rodar o laravel-echo-server em produção na Digital Ocean? Como vou saber que ele vai estar rodando caso eu entre no SSH. eu tentei usar o laravel-echo-server do laradock na minha maquina, mas não funciona. ``` Attaching to laradock_laravel-echo-server_1 laravel-echo-server_1 | npm WARN using --force Recommended protections disabled. laravel-echo-server_1 | laravel-echo-server_1 | > [email protected] start laravel-echo-server_1 | > laravel-echo-server start laravel-echo-server_1 | laravel-echo-server_1 | laravel-echo-server_1 | L A R A V E L E C H O S E R V E R laravel-echo-server_1 | laravel-echo-server_1 | version 1.6.3 laravel-echo-server_1 | laravel-echo-server_1 | ⚠ Starting server in DEV mode... laravel-echo-server_1 | laravel-echo-server_1 | ✔ Running at localhost on port 6001 laravel-echo-server_1 | ✔ Channels are ready. laravel-echo-server_1 | ✔ Listening for http events... laravel-echo-server_1 | ✔ Listening for redis events... laravel-echo-server_1 | laravel-echo-server_1 | Server ready! laravel-echo-server_1 | laravel-echo-server_1 | [2022-08-14T12:25:26.271Z] - Preparing authentication request to: http://localhost laravel-echo-server_1 | [2022-08-14T12:25:26.277Z] - Sending auth request to: http://localhost/broadcasting/auth laravel-echo-server_1 | laravel-echo-server_1 | [2022-08-14T12:25:26.353Z] - Error authenticating QZKuYD_IIjKqclufAAAA for presence-econsulte_database_online laravel-echo-server_1 | Error: connect ECONNREFUSED 127.0.0.1:80 laravel-echo-server_1 | at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1247:16) { laravel-echo-server_1 | errno: -111, laravel-echo-server_1 | code: 'ECONNREFUSED', laravel-echo-server_1 | syscall: 'connect', laravel-echo-server_1 | address: '127.0.0.1', laravel-echo-server_1 | port: 80 laravel-echo-server_1 | } laravel-echo-server_1 | Error sending authentication request. ``` ``` { "authHost": "http://localhost", "authEndpoint": "/broadcasting/auth", "clients": [ { "appId": "*", "key": "*" } ], "database": "redis", "databaseConfig": { "redis": { "host": "redis", "password": "*", "port": "6379" } }, "devMode": true, "host": null, "port": "6001", "protocol": "http", "socketio": {}, "secureOptions": 67108864, "sslCertPath": "", "sslKeyPath": "", "sslCertChainPath": "", "sslPassphrase": "", "subscribers": { "http": true, "redis": true }, "apiOriginAllow": { "allowCors": true, "allowOrigin": "*", "allowMethods": "GET, POST", "allowHeaders": "Origin, Content-Type, X-Auth-Token, X-Requested-With, Accept, Authorization, X-CSRF-TOKEN, X-Socket-Id" } } Codifique aqui ```

7 Respostas