Dev.to WebDev πŸ›  Dev πŸ‘ 0 πŸ“– 1 min read

Run Simple Web Server On The Spot

PHP php -S localhost:8000 PHP (public) php -S localhost:8000 -t public Python python3 -m http.server 8000 Node npx serve -p 8000 BusyBox busybox httpd -f -p 8000 Ruby ruby -run -e httpd . -p 8000

Cover image for Run Simple Web Server On The Spot
hardyweb
hardyweb

Posted on Aug 2

Run Simple Web Server On The Spot

PHP php -S localhost:8000

PHP (public)    php -S localhost:8000 -t public

Python  python3 -m http.server 8000

Node    npx serve -p 8000

BusyBox busybox httpd -f -p 8000

Ruby    ruby -run -e httpd . -p 8000

Enter fullscreen mode Exit fullscreen mode
DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

πŸ“° Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.