Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Lightweight Localhost File Server for Mac

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.

like image 435
bendytree Avatar asked Sep 02 '25 15:09

bendytree


1 Answers

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
like image 68
clee Avatar answered Sep 05 '25 08:09

clee