-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add ability to change ports #11
Comments
Thanks, for now you can add this file to your own project, and change the port / volume mounts. https://github.com/crossfield/gutenblock/blob/master/cli/watch/docker-compose.yml you can run I need to add cli flags for all of these options. Hopefully in a week or so. |
Where was I supposed to put that? I put it in the root, but it didn't have any effect, I think. I'm pretty sure this is completely my machine's fault though: I confirm with
|
Sorry my bad... I suck at explaining Put the docker compose inside your blocks folder Run |
Thanks. That makes more sense. |
I have the blocks plugin running inside my own docker wordpress image (on port 89), but the |
gutenblock watch will run your blocks on localhost:8080 by default. you need to make sure your plugin looks like this:
Inside gutenberg you should see webpack in the chrome console showing its connected |
Thanks for clarification, I misunderstood the setup. Linking to localhost:8080 works perfectly 👍 |
When running the docker watch, I am getting this error
ERROR: for wordpress Cannot start service wordpress: driver failed programming external connectivity on endpoint blocks_wordpress_1 (92276f168396b71072f54fc7b359a72669273720199ba52e27ea71be1ac3cd1c): Error starting userland proxy: Bind for 0.0.0.0:80: unexpected error (Failure EADDRINUSE)
That would indicate that port 80 is in use, which is common. It would be great to have an environment variable for port or to automatically find an open one.
The text was updated successfully, but these errors were encountered: