-
Notifications
You must be signed in to change notification settings - Fork 178
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
Access server host inside a task #216
Comments
If you want to propose something feel free to send in a PR 👍 |
I like your idea @guratr |
I created PR, but unfortunately it was rejected 😭. |
OK, i go to your repo. |
I found out, that I can use $__container->getServer($name) to access a server in the TaskContainer https://github.com/laravel/envoy/blob/2.x/src/TaskContainer.php. |
The documentation suggests using something like this for parallel execution
If all of your sites live on different servers, you always can create "site" symlink on server to your site path.
But when you have multiple sites on the same server, for example
there is no way to specify where to "cd" for each site in the task.
It would be great if we had access to some variable "$currentHost" inside a task
The text was updated successfully, but these errors were encountered: