Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2.0] Set the Horizon environment via command option #523

Merged
merged 1 commit into from
Feb 27, 2019
Merged

[2.0] Set the Horizon environment via command option #523

merged 1 commit into from
Feb 27, 2019

Conversation

stayallive
Copy link
Contributor

The reasoning for this is because we use Envoyer to deploy our application to all machines (including workers) and use config caching to speed up the boot times of the workers.

By allowing a separated config option for setting the environment (horizon.env) doesn't work for us since we have all web nodes also run a light version of the worker and have our worker servers run many processes for the heavy lifting and thus need to differentiate which because of config caching we can't do with .env vars.

Long story short, this allows us to run php artisan horizon --environment=worker in our supervisor config on the worker servers.

@tomswinkels
Copy link
Contributor

With this option we also can manage witch job run on different servers.

@driesvints driesvints changed the title Set the Horizon environment via command option [2.0] Set the Horizon environment via command option Feb 27, 2019
@taylorotwell taylorotwell merged commit 655332d into laravel:2.0 Feb 27, 2019
@stayallive stayallive deleted the patch-1 branch February 27, 2019 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants