Join the Webstudio community

Updated last month

Self hosting builder Help

At a glance

The community member is having issues setting up a local development environment for the Webstudio project. They managed to get it working up to a certain point, but encountered an error when running pnpm dev. They tried a suggested fix of adding an entry to the /etc/hosts file, which allowed them to see the local and network links, but they didn't work. The community member has updated their Docker and Dev Containers versions, but is still facing issues with the build process.

Other community members have provided some suggestions, such as migrating the database, checking for port conflicts, and wiping out any existing containers and volumes before trying again. However, there is no explicitly marked answer in the comments.

Useful resources
I'm not the most experienced, I managed to get it to work up until the last point, when I run pnpm dev as it says on the page, I get this error. I did manage to "fix" it by running echo "127.0.0.1 wstd.dev" | sudo tee -a /etc/hosts as suggested by AI, this allowed it to progress and show me the local & network links, but they didn't actually work, and localhost:5173 lead to a filesystem for the project.

I did follow all update prompts in the terminal.

I'm running
Operating System: Windows 11 (WSL Debian)
Docker version: 4.40.0
Dev containers version: 0.413.0
M
V
8 comments
gotta migrate the db hold up
#Self hosting Builder (Locally) Help
Plain Text
git clone https://github.com/webstudio-is/webstudio.git

// Edit "webstudio/apps/builder/.env" with this value AUTH_SECRET=password for a login password

cd webstudio

pnpm install

cd .devcontainers/

// Check if port is being used "sudo lsof -i :5432" and kill the postgres database before creating docker compose "sudo kill <PID>"
// You can do PGPORT=5433 after you have created a volume with port 5432 by default\

docker compose up -d

cd ..

pnpm migrations migrate

pnpm dev
Since posting this, I've updated docker to the newest version 4.41.2, and after running the

git clone https://github.com/webstudio-is/webstudio.git

I pasted AUTH_SECRET=password into the file, and re-opened the file into a dev container after cd webstudio didn't run. It failed to build though, giving me this:
Attachment
image.png
Dunno how to help you here as I didn't have such an issue
just try wiping out any containers, volumes and etc... and launch again the devcontainers
the AUTH password part is only for when you actually get it up and running otherwise shouldn't affect the container
ty though, I'll try out what you sent earlier if I'm able to fix this
Add a reply
Sign up and join the conversation on Discord