문제

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.

도움이 되었습니까?

해결책

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
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top