Very slow startup in WSL #3617
Closed
smac89
started this conversation in
Potential Issues
Replies: 3 comments 6 replies
|
That's not normal 😬 Could you share an MCVE/example app or does anything take this long including something like litestar-hello-world (https://github.com/litestar-org/litestar-hello-world)? |
1 reply
|
is it the same with just uvicorn and not using litestar ? did you try another webserver ? |
1 reply
|
Turns out the problem is with the This is what I had in my .env file: Removing the above line, makes startup instant once more. So the problem looks to be something to do with the way litestar handles ignoring certains files/folders 🙄 |
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I don't know if this is typical of litestar, or just due to using it through WSL. Whenever I start the dev server (using
litestar run), it takes a solid minute or more for the server to start up.I'm running Arch WSL from the Microsoft Store, and this is the timing I get (plus a couple seconds to stop the server) when I run the above command:
2 minutes!
I also notice that reloading takes a long time as well. Not quite 2 minutes, but definitely longer than it should under normal circumstances. Comparatively speaking, vitejs takes less than half a second to start up, and it is also running in WSL.
Is this normal? What could the problem be?
All reactions