An open API service indexing awesome lists of open source software.

https://github.com/buffermet/pyserver

Quicker deployment of python's SimpleHTTPServer
https://github.com/buffermet/pyserver

Last synced: 9 months ago
JSON representation

Quicker deployment of python's SimpleHTTPServer

Awesome Lists containing this project

README

          

### NO CLONE OR DOWNLOAD REQUIRED

#### Installation

```
sudo echo -e "if [ $# -eq 0 ]; then PORT=8000; else PORT=$1; fi; python -c 'import socket; print "^[[92mhttp://" + str( socket.gethostbyname( socket.gethostname() ) ) + ":'$PORT'^[[0;0m";'; python -m SimpleHTTPServer $PORT;" > /usr/bin/pyserver
sudo chmod +x /usr/bin/pyserver
```

#### Deployment

```
sudo pyserver
```

![pyserver](https://user-images.githubusercontent.com/29265684/37338234-91e4eacc-2702-11e8-96f2-0898252dba92.png)