Join the Webstudio community

Updated 2 months ago

How to run app by VSCode & Docker

At a glance

The post indicates that the community member is able to run Docker successfully, but encounters an error when running the "pnpm dev" step. The comments suggest that the community members are facing similar issues when following the instructions in the documentation to run Webstudio in Docker with VS Code. Some community members have provided suggestions, such as adding "127.0.0.1 wstd.dev" to the /etc/hosts file, or using localhost instead of wstd.dev. However, there is no explicitly marked answer to the issue.

Useful resources
i run docker successfully but when i do "pnpm dev" step i get this error
Attachments
image.png
C8EA23FE-F85A-405B-A1CD-18050745A8C3.png
4
B
T
D
19 comments
i don't see this in document
Attachment
8522E6E0-085E-40C5-AC92-0DD7E6A9AE2F.png
but fail
Attachment
BEB6BFEF-1AA9-47C5-B86A-186D278E22C6.png
hi @TrySound
Please help me check. thanks
I get similar errors to @Tuấn Phong when following the guide in the docs on how to run Webstudio in Docker with VS Code. @TrySound Where is your screenshot from as I can't see it in the docs either?
Attachment
Screenshot_2024-11-05_134147.jpg
cc @Ivan Starkov
I use devcontainer with vscode, and gonna to remove all other sections. Probably some packages installed on mac/windows interfere with docker install etc
To better understand whats happening try clean fetch, into new folder, etc
And log here every step u did
Is there a fix to this issue yet? I run into the same error as others do above.
Attachment
image0.jpg
I was able to overcome this error, by adding “127.0.0.1 wstd.dev” to my /etc/hosts file. Now the dashboard and login works, but projects still don’t work. They are on subdomains of wstd.dev and thus are not reachable. I’m still figuring out a solution to this, but if anyone here knows how to do that, I’d appreciate any help. Hope this helps anyone, facing similar issues.
While I haven’t found a proper answer until now, I found some success with using localhost instead of wstd.dev. It gives you warnings, as ssl doesn’t work with localhost, but it works. Also make sure to also log in over the localhost route, as switching afterwards results in errors in the docker container. If I find a proper answer I will post it here.
how did you change it from "wstd.dev" to "localhost"
Yeah, good question, I don’t know honestly. It’s been a while since I made this and I went back to my hosted version on my home server, where I have a local A-record set up. I only needed the fully local install on my device as I was not at home and lost connection to my home server. But as far as I remember I changed “wstd.dev” in the apps/builder/vite.config.ts file to “localhost”, and/or always calling “localhost” in my browser instead of “127.0.0.1”.
If you need this or have tried any of these two let me know how it went. I’m curious as well. If both don’t work, I might actually look into this as I wanted to report a bug with this on the Repo anyways.
when I change "wstd.dev" to anything else it breaks? 😂 EDIT : I might have found a work around still testing
Ok, then it apparently was not that 🙂 What did you find then?
Add a reply
Sign up and join the conversation on Discord