gecche / laravel-multidomain

A Laravel extension for using a laravel application on a multi domain setting
MIT License
838 stars 105 forks source link

Queue in Forge? #81

Closed christoph-werker closed 2 years ago

christoph-werker commented 2 years ago

Hello Guys,

right now I'm struggling with the settings for the Queues with Forge.

I have in Forge the following Setting for my queues. Unfortunately i don't have a option for the --domain Parameter

Screenshot 2022-06-09 at 22 35 22

Has probably someone figured out how to achieve a success with an additional parameter for the worker in forge?

gecche commented 2 years ago

Hi, nope... as far as I know, it can't be done: you should ask directly to the maintainer of Forge (Taylor I suppose...) I'm also using forge and I simply configure manually the supervisor processes when I need

Giacomo

christoph-werker commented 2 years ago

Hi Giacomo,

thanks for the fast Reply.

I'm, testing to add the Domain in the Environment field, and it could work. But it's untested and i'm waiting for tailor to answer me.

image

What is your best practice approach to do this? Because i need a solution that my employee could handle in case that i'm not available and there is an critical error?

christoph-werker commented 2 years ago

i got an answer from Forge. The Solution in my previous comment could work, but creating a new daemon should be better. The Daemon could be found at forge->servers->select server->Daemons Then type in the following Settings.

image

In order to restart the process after deployment, you'll need to run sudo supervisorctl restart daemon-<ID>:daemon-<ID>_00

where is the ID displayed on the server's Daemons tab.

gecche commented 2 years ago

Good to know :)

In forge I always use supervisor directly by command line :)

Cheers Giacomo