3 ms·
> But why do I… ok fine, I’m going to start a localhost. Is "start a localhost" a generic term? If someone told me to do that, I would probably freeze in embar
by throwaway_sun 6y ago
> But why do I… ok fine, I’m going to start a localhost.
Is "start a localhost" a generic term? If someone told me to do that, I would probably freeze in embarrassment -- no one has ever told me to do that in such context-independent terms. Since this was about node/JS, did John install express, or some other static file serving module? Or did he have an unrelated tool that makes this trivial?
- tonyhb 6y agoIt's kind of a weird phrase. Would normally "start a server". But yes, generally speaking, it's a one liner to expose $PWD: python3 -m http.server
- deleted 6y ago[deleted]
- wrycoder 6y agoWhich listens on localhost by default.
- alesua93 6y agoYup, I've never heard of that particular idiom used to describe the action of spinning up a local server, and it's not really something trivial as to not require some external tooling. So I don't know what's up with that.
- marci 6y agohere's how trivial it can be: https://gist.github.com/willurd/5720255 https://gist.github.com/willurd/5720255 ("Big list of http static server one-liners")