-
-
Notifications
You must be signed in to change notification settings - Fork 198
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
Using encore dev-server with docker devilbox containers #828
Comments
tried a lot of things, including reverse proxy (similar to Nginx configs in devilbox Docs), exposing 8080 in docker-compose.yml etc, ... didn't get it to work. So +1 |
Finally I was able to manage this. So this works now somewhat perfect, with a few sideeffects, see below: First, your start command needs to look something like this: Note: Symfony does still output Also tell Devilbox to listen for the webpack-dev-server Port, create a
Third, for the websocket, add some configuration to
The only problem is that the browser marks the page as insecure, as the default webpack-dev-server certificate is only signed for Temp fix: open a single created file, like Webpack Encore 1.0.4 |
Thanks. |
yes, its inside the PHP container. Forgot to mention, you will also have to update/create docker-compose.override.yml with Ports for PHP container, I'll update my answer ASAP |
Sorry, can you give me the code that you have write in your docker-compose.oveerride.yml ? Thanks |
I edited my first comment with all the info needed. Also note the versions. Webpack dev server 4 has quite some breaking changes. |
Hey, @raulbethencourt does it work? for
Still works for me, however its a bit nasty, cause I'll have to add an certificate exception to my browser every now and then. |
Sorry ptmrio Ill check it tomorrow. i been working in other projects and I haven't give it the time. Ill tell you tomorrow. But thanks a lot |
Hi ptmrio. I'm triying but its not working.
I'm geting this error if i dont add anithing in webpack.config.js.
this error if i add the lines into the webpack.config.js |
I also did everything you put about docker-compose.override.yml
|
Thank you @ptmrio the |
Thank you for this issue. |
Hi.
I'm trying to use dev-server in docker containers with devilbox and i did all configuration to use dev-server in virtual machine that i found: https://symfony.com/doc/current/frontend/encore/virtual-machine.html
But in chrome consol i have this error:
And also i dont have autorefreshing window when i save.
I do the command
$ yarn dev-server
and tha answer is:So it look that its working.
My webpack.config.js:
And my package.json:
My build/manifest.json:
And my entrypoints.json:
So any solution ?
The text was updated successfully, but these errors were encountered: