Dec 2, 2021 07:46
do you have same env in all servers?
Dec 2, 2021 07:46
php artisan websockets:serve
Starting the WebSocket server on port 6001...
Dec 2, 2021 07:45
so you call on 6001 too?
Dec 2, 2021 07:44
do you put implicit port or host when calling php artisan websockets:serve?
Dec 2, 2021 07:42
@KamleshPaul yes
Dec 2, 2021 07:42
in 1 server, everything works
Dec 2, 2021 07:41
I setup the same code to 1 server (app & workers) together
Dec 2, 2021 07:40
I use it for auth of channels
Dec 2, 2021 07:40
App\Providers\BroadcastServiceProvider::class
Dec 2, 2021 07:40
this is uncommented already
Dec 2, 2021 07:39
This is perfectly working in local
Dec 2, 2021 07:39
Dec 2, 2021 07:36
broadcast() throws this exception: Illuminate\Broadcasting\BroadcastException: Pusher error:
Dec 2, 2021 07:35
$this->notify() is continuing without any failure but the data doesn't get delivered
Dec 2, 2021 07:33
but it's same env, same code
Dec 2, 2021 07:33
yeah, the worker server can't send properly
Dec 2, 2021 07:32
Dec 2, 2021 07:30
Request URL: wss://socket.domain.com/app/c17017da-f0fe-4ffb-996a-445e35a18c9b?protocol=7&client=js&version=7.0.3&flash=false

Status: 101 Switching Protocols
Dec 2, 2021 07:24
I updated the OP and put all my configs. Can you please take a look?
Dec 2, 2021 07:24
There is no error. The queued jobs get success, however App doesn't receive any message from worker. Both servers are connected to the same database and they are in the same VPC.
Dec 2, 2021 07:24
Thanks - Do you only run php artisan websockets:serve on the app server or also in the queue worker?
Dec 2, 2021 07:24
Thanks for your reply. Can you please share your echo config too? I just setup the subdomain approach, but still can't make it work. Do you run php artisan websockets:serve on the queue worker server? If so, do you add any flags to it?
 
Mar 18, 2019 10:27
Hope it helped, happy coding pal :)
Mar 18, 2019 10:26
Log::info("x")
Mar 18, 2019 10:26
use the logger to see if it runs
Mar 18, 2019 10:25
what happens?
Mar 18, 2019 10:25
with space
Mar 18, 2019 10:25
yes
Mar 18, 2019 10:25
path artisan
Mar 18, 2019 10:25
wait
Mar 18, 2019 10:25
path/artisan
Mar 18, 2019 10:24
yes
Mar 18, 2019 10:24
Sorry I can't be of much help
Mar 18, 2019 10:24
But if you don't run the schedule:run, it won't check every minute if it's time for the send:emails command to run
Mar 18, 2019 10:23
$schedule->command('send:emails')->daily()->onOneServer();
Mar 18, 2019 10:22
Let's say you have a Command called send:emails
Mar 18, 2019 10:21
->onOneServer();
Mar 18, 2019 10:19
I'd put it in a scheduler, run schedule:run (every minute) as cron and handle the frequency of a single command with the Frequency Options laravel.com/docs/5.8/scheduling#schedule-frequency-options
Mar 18, 2019 10:17
but you said you don't want to run it on an interval :/
Mar 18, 2019 10:16
And how will you trigger it?
Mar 18, 2019 10:16
When do you want to run it?
Mar 18, 2019 10:15
So you want to include it in your deploy script?
Mar 18, 2019 10:13
Wait - don't you need to utilize scheduler even to run only 1 job with a logic (for example, once a day ie ->daily())?
Mar 18, 2019 10:13
Yes, it's same approach. Fixed my previous comment
Mar 18, 2019 10:13
php /home/forge/your_folder_name/artisan command:name
Mar 18, 2019 10:13
/default/ should be the folder name - I suspect not yours is not 'default' either. Here is a piece of tutorial
 
Mar 17, 2019 12:16
happy coding
Mar 17, 2019 12:16
no need dude ^^
Mar 17, 2019 12:15
I'm getting back to work, good luck pal
Mar 17, 2019 12:12
`$user->application->questions;` you can use them as this