Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
tgv
on Sept 16, 2023
|
parent
|
context
|
favorite
| on:
static-server: an HTTP server in Go for static con...
$ python -m http.server
chrismarlow9
on Sept 16, 2023
|
next
[–]
https://gist.github.com/willurd/5720255
inChargeOfIT
on Sept 16, 2023
|
prev
|
next
[–]
Assuming you have python installed on the system, yeah.
sdf4j
on Sept 16, 2023
|
parent
|
next
[–]
python 2 and not 3
maleldil
on Sept 16, 2023
|
root
|
parent
|
next
[–]
`python -m http.server` is the one for Python3. Python 2 is `python -m SimpleHTTPServer`
joaomacp
on Sept 16, 2023
|
prev
[–]
or the node one:
$ npm install http-server
$ http-server .
parminya
on Sept 16, 2023
|
parent
[–]
or the go one:
$ go run github.com/eliben/static-server@latest
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: