Hello guys
i follow the Tutorial of Docker desktop,
in Access your local folder from a container → develop the app :
it said < In your local directory, open app/views/todos.ejs in an IDE or text editor, update the Enter your task string, and save the file. Visit or refresh localhost:3001 to see the changes. >
but it not working, any one know why ??
Please, share the link to the tutorial you followed and also what it means “not working”. If you have error messages, please, share that too. When you share the error messages, use code blocks as described here: How to format your forum posts
there are no error message, just i follow the tutorial steps and i don’t found the expected result
< in between, Docker display a popup ask me if accept access to my app folder, and i accept>
In your screenshot I only see you the description of the step, but not how you realized it is not working. There is always some kind of error message. For example when you open the url in a webbrowser and it says unavailable or conection refused, or similar. If it is not shown in the browser window directly, you can press F12 to open the develooper console. Go to the network tab and see the error messages there or on the console tab sometimes.
If we don’t know whaty ou mean by “doesn’t work” we can’t tell what you need to do to solve it.
Is it the NodeJS guide? I don’t have time to test it at the moment, but it would help if you could share more about how we could reproduce it. INcluding which guide you tried exactly. As far as I know these also redirect you to the documentation. It would speed things up if you could share a link to that.
Based on the screenshot, which I almost didn’t understand since you didn’t share why you think it is wrong, I guess the problem is the source code in the HTML which should be handled on the backend side, but it depends on what guide you tried. We can’t always recognize it just by looking at a picture.
it is not in NodeJs guide, it’s in Walkthroughs in the docker desktop application.
a tutorial called Access your local folder from a container, section Develop the app
and as i montioned it said
In your local directory, open app/views/todos.ejs in an IDE or text editor, update the Enter your task string, and save the file. Visit or refresh localhost:3001 to see the changes.
i follow the steps but i don’t found the result expected
I didn’t even know that there were more walkthroughs since I didn’t click on “view all” so thank you for the exact steps. This i why it is important to share the steps as we don’t necessarily know all the guides that we don’t use Now I can see it. I will take a look at it later.
What was the result you expected? I’m still waiting for what you think is a problem. I thought the screenshot showed the source code in the webbrowser, but I realized it was an editor.
So what is the problem? The app works
thank you for your interest of this topic🙂
it’s not a long tutorial, if you follow it you will catch it.
it said: update the enter your task
i update it by enter your task 123456789 as it mentioned in the editor picture
i refresh the page but no change applied
and thank you for your patience as I continued to miss the one sentence that explained what your problem was and I also missed the instruction in Docker DEsktop although I tried it before my previous post.
So now I edited the text, refreshed the browser and the text changed in the browser. I tried it on Windows and macOS.
Are you sure you didn’t miss any step? For example adding the bind mounts in the compose file two steps earlier?
sure i don’t miss them, even i ask a friend to apply this tutorial in his computer and he have the same issue, for that i ask in this forum,
this is my first day with docker, maybe i miss something, and thank you for your help
What web browser are you using and how do you refresh the web page? CTRL+F5 usually clears the cache too, but I didn’t need that.
i use Google chrome, Ctrl+f5 used to force apply changes of css and js,
i tried to see the file in the container, i don’t found changes, so it’s not related with browser or refresh mode
Hi, did you successfully execute: docker compose watch
in the terminal from the project directory?
yes, but it’s the same