Question

Is there a super lightweight file server that I could use for development on my mac?

I'm imagining something like:

> cd somefolder
> run server
  ...running static file server at http://0.0.0.0:2343...

It's only for development of static html/css/js/images - no outside connections needed.

Was it helpful?

Solution

Sure! And it's already installed.

Just try this:

cd path/to/files
python3 -m http.server

If you want to run it on a specific port instead of 8000 (the default), just append the port number as a second argument, like:

python3 -m http.server 2343
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top