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

serve should use miniserve and fall back to Python #15

Open
colindean opened this issue Jun 20, 2020 · 1 comment
Open

serve should use miniserve and fall back to Python #15

colindean opened this issue Jun 20, 2020 · 1 comment

Comments

@colindean
Copy link
Owner

https://github.com/colindean/hejmo/blob/master/scripts/serve current uses a Python 2.x invocation. It should check for miniserve and use that if it's available (since it's a part of my standard Brewfile.all installation base), falling back to Python 3.x python -m http.server then back to its current implementation. It might be a fun exercise to drop in a few other alternatives, e.g. lighthttpd in a docker container (docker run -d --name lighttpd -p 80:80 gists/lighttpd) or this Ruby one-liner (ruby -run -e httpd . -p 5000).

@colindean
Copy link
Owner Author

I found this absurd list of one-liners, many of which do not require external packages, which is a requirement of this beyond miniserve.

https://gist.github.com/willurd/5720255

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

1 participant