Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Y_Y
3 months ago
|
parent
|
context
|
favorite
| on:
Simple Web Server
Almost! That will read the variable whose
name
is is the script argument. Also the directory argument needs a flag on my setup. It should be:
python3 -mhttp.server "${1:-8080}" -d "${2:-.}"
porridgeraisin
3 months ago
[–]
Yep, you're right.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: