Attempt to connect to 127.0.0.1:4000 in Windows Chrome browser
Result: “host refused to connect”
Any ideas out there as to how I might be able to preview my fastpages build served from WSL2 via my Windows browser?
Note: This problem does NOT occur when running jupyter notebook on it’s own, but the jupyter server run via the Makefile from the fastpages template also refuses to connect.
I’ve been trying to run fastpages locally on my Windows 10 laptop for over 2 hours. No luck so far, I’m not even able to run the make server command because I don’t seem to understand Docker/WSL2.
Before I spend even more time digging deeper, is it even possible what I imagine: editing notebooks or CSS files in Windows and seeing the results locally on my machine; without pushing the changes to github and cloning them into WSL every time?
Hi @johannesstutz can you share more so that someone can help you. And yes, you can see the results locally on your machine. That’s what make server is doing, however you have to have Docker installed correctly etc before this can happen.
Hi Hamel, thank you for your reply! I did not give any details because I thought it wouldn’t be a good use of your time to explain Docker to me
However, maybe someone can help me. I don’t know where to run the make server command. I have Docker running and WSL2 installed. Which command line tool do I have to use?
Do I have to install Ubuntu or another distribution or is the built-in Linux fine? (I tried installing Ubuntu 20.04 LTS from the Windows Store but that did not work)
I’ve read the development guide carefully. My problem however is very basic: after I install Docker - where do I find the CLI where I enter make server? (So it’s not about which make command to use when or in which directory, but where I have to physically enter these lines)
Sorry for these extremely basic questions.
So I think this means it can’t access Docker (which I installed on Windows). I also checked if the “WSL integration in Docker Desktop settings” is activated, and it is (I think):
@johannesstutz You have to install WSL2 and Ubuntu before you install Docker for the Docker WSL2 backend to install properly. See info/instructions via the link below.
I have to use htttp:// to connect to the Jekyll server, not https://, this might be an error in the development guide?
Automatic rebuilding on file change is not working, I have to restart the server to see any changes. I think this is because I have stored the files on the Windows filesystem. No big deal.