aliases | category | classification | date | date_modified | draft | id | image | links | local_archive_links | pinned | series | tags | title | type | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
cli |
public |
2020-12-25 13:58:32 -0800 |
2020-12-25 13:58:32 -0800 |
false |
20201225215832 |
false |
false |
|
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.