Tuesday, February 25, 2014

Static file web server on Raspberry Pi for development/testing

Maybe like me you're practicing your Dart or Angular-Dart web programming, you have no server side code, just static html, css and javascript files.

A very simple way to get this served up on your Raspberry Pi (or any other linux dist) is to navigate to the folder which contains your files and execute:

python -m SimpleHTTPServer 8080

Your server is now listening on port 8080, just point your browser to http://:8080

No comments:

Post a Comment