Skip to content

Files

Latest commit

 

History

History
37 lines (32 loc) · 798 Bytes

File metadata and controls

37 lines (32 loc) · 798 Bytes
aliases category classification date date_modified draft id image links local_archive_links pinned print series tags title type
web-server-one-liners
cli
public
2020-12-25 13:58:32 -0800
2020-12-25 13:58:32 -0800
false
20201225215832
false
false
android
php
python
termux
web-server
Web Server One Liners
tech-note

Some very handy one line commands for starting a web server for testing and development.

Run the command in the directory you wish to serve, or where provided, supply a flag for the directory.

Most of these should also work on Android via Termux (if the language can be installed).

php -S localhost:8000
python -m http.server 8000

After starting the web server, you can access content at 127.0.0.1:8000.