Easy One-Line Server Commands
🚀 Server Setup Toolkit
Basic Servers
python3 -m http.server 8000
php -S localhost:8000
Advanced Options
npx serve . -l 3000
docker run -v "$(pwd):/app" -p 8000:80 nginx
python3 -m http.server 8000
php -S localhost:8000
npx serve . -l 3000
docker run -v "$(pwd):/app" -p 8000:80 nginx
py -m http.server 8000
npx http-server
go run github.com/shurcooL/goexec 'http.ListenAndServe(":8000", http.FileServer(http.Dir(".")))'
deno run --allow-net https://deno.land/std/http/file_server.ts
Comments
Post a Comment