-
Notifications
You must be signed in to change notification settings - Fork 83
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
How to use outside of Vagrant Box? #10
Comments
The homestead VM needs to connect to the host server. Maybe you got the IP address wrong? |
@ian-nisbet did you figure this out? |
I can't get it to work inside a docker-compose setup, this might be a similar issue. There is a nginx image to serve the site, the code runs from a PHP image and artisan commands are issued from a workspace container. What should be the host IP here? I've tried them all, but the connection seems to always fail. |
I had a similar issue with Docker. I had to set the config file to listen to all IP addresses as per the below snippet and run the 'php artisan dump-server' command within the work space container to get the dump server up and running listening on all IPs.
then changed the config file to point to the IP address of the workspace container to allow the nginx container to send the logs to the correct address. In this instance I had to set it too -
Perhaps you can attempt something similar with Vagrant? Might be of benefit to split the config values into a 'listen on' and 'connect to' address to allow the dump server to exist on a different node/machine/container? Alternatively, for my use case I can just move the options to environment variables and set them within the docker compose files or set them at run time. |
@Rigby90 you are a lifesaver, thanks! So to summarize what I did to get it to work: I edited my docker-compose file to expose the port the dump server runs on in the php image section:
And in the dump-server config, I pointed to the name of the workspace container, like so:
And everything works like a charm:
|
IP Address of Vagrant box is correct.
|
For those using Laradock, here what I had to do (thanks @johanvanhelden for sharing your solution):
|
Anyone using dump-server with Lando (https://github.com/lando/lando)? |
This is working fine (both with Laravel and Lumen) when using homestead and running
php artisan dump-server
inside of the Vagrant box. How do I configure it to run from outside of the Vagrant box, but listen to the server inside?I tried changing config 'host' => 'tcp://192.168.10.8:9912' but I get error
stream_socket_server(): unable to connect to tcp://192.168.10.8:9912 (Can't assign requested address)
Thanks
The text was updated successfully, but these errors were encountered: