(Yes, I know, VSCode includes the wonderful Live Server)
Here is my gaffer tape and spray foam solution that allows you to start your HTTP server couch potato style:
Ingredients:
- shell,
 - zenity
 - netstat
 - docker (trinitronx/python-simplehttpserver)
 - pwgen
 
Directions:
- ask for directory
 - check for currently used ports
 - randomly select a nice free port
 - generate a unique container name
 - serve your directory via a HTTP-server
 - show link to address with option to close server
 
View the source
              
    
Top comments (0)