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
- Host: GitHub
- URL: https://github.com/buffermet/pyserver
- Owner: buffermet
- License: gpl-2.0
- Created: 2017-10-13T08:28:43.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-04-25T09:06:46.000Z (almost 6 years ago)
- Last Synced: 2025-06-09T22:05:56.645Z (9 months ago)
- Language: Shell
- Homepage:
- Size: 27.3 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```
