Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overkill perhaps? #2

Closed
commadelimited opened this issue Jul 25, 2012 · 5 comments
Closed

Overkill perhaps? #2

commadelimited opened this issue Jul 25, 2012 · 5 comments

Comments

@commadelimited
Copy link

You can start a Python server (that serves the same purpose) from any directory on your machine with this shell function:

function server() {
    local port="${1:-8000}"
    open "http://localhost:${port}/"
    python -m SimpleHTTPServer "$port"
}
@jnewman
Copy link

jnewman commented Oct 8, 2012

@commadelimited There's a typo in SimpleHTTPServer.

@commadelimited
Copy link
Author

Good catch @jnewman. Fixed.

@andrewpthorp
Copy link
Owner

Hey guys, one of the major reasons I did this was to get my feet wet with Node.js. This is most likely overkill, and definitely not ready for production, but if any of you guys are interested in working on the project / submitting pull requests to differentiate it and make it a useful tool, feel free!

@jnewman
Copy link

jnewman commented Oct 15, 2012

@andrewpthorp Yeah, I sorta figured. I'm writing a short article on building FE resources and want to keep my manually installed deps down to just Node. I'll be sure to add your point as a caveat. FWIW it's great for quick prototyping, which is all I've ever used the Python equivalent for anyways :-)

@OscarGodson
Copy link

Yeah, if you're on a *nix machine. This is really handy when working on windows for one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants