GSimpleHTTPServer is a tool provided a feature to run SimpleHTTPServer with gevent.
- Change you directory to project root.
- Make GSimpleHTTPServer virtualenv:
$ make dev-init
- Activate the GSimpleHTTPServer virtualenv:
$ source .dev/toggle
- Run
./demo/run_at_resources.pyto serve under the directory./demo/resources/
$ env PYTHONPATH=. ./demo/run_at_resources.py 9096
- Put your files under the directory
./demo/resources/
- Open the upstart script under the directory
./demo/and change the paths
$ vim ./demo/GSimpleHTTPServer.conf
- Copy the upstart script to
/etc/init/ - Use
start GSimpleHTTPServerto start andstop GSimpleHTTPServerto stop