This workflow will take the focused/front Finder window and create a temporary Python Server at that location, using `python -m SimpleHTTPServer`.
Function will also open the default web server URL (http://0.0.0.0:8000) in the default browser when the python server has started.
This is an extremely handy way to quickly test code in a server environment, especially when working with cross-domain functionality that will not work from localhost/local file server. Basically allowing you to create an ad-hoc/on-demand web server at any Finder location on your mac.
Borrows some of the Terminal Finder functionality from Chris Yip's "Terminal Here" workflow: http://chrisyip.im/
Open Web Server Here Workflow - v1.0.0
in Share your Workflows
Posted
This workflow will take the focused/front Finder window and create a temporary Python Server at that location, using `python -m SimpleHTTPServer`.
Function will also open the default web server URL (http://0.0.0.0:8000) in the default browser when the python server has started.
This is an extremely handy way to quickly test code in a server environment, especially when working with cross-domain functionality that will not work from localhost/local file server. Basically allowing you to create an ad-hoc/on-demand web server at any Finder location on your mac.
Borrows some of the Terminal Finder functionality from Chris Yip's "Terminal Here" workflow: http://chrisyip.im/
Download: http://cloud.joshuarhoades.com/3O0c1h3P250l