Take the latest code from github and add this two options to your server:

stats = 127.0.0.1:port
stats-http = true

(choose the port you want)

Now open an ssh tunnel from your local machine to the server

ssh -N -L 5001:127.0.0.1:PORT USER@SERVER

change PORT to the previous specified port, and change USER and SERVER to the 
values of the server where uWSGI is running

Now you have port 5001 on your local machine pointing to the remote one

Finally just go to

http://unbit.github.com/uwsgi/

and the more the uWSGI instance is loaded, the more fun you will get.

If for some reason port 5001 is not usable on your machine, just specify 
another one with

http://unbit.github.com/uwsgi/?5015

(for port 5015)

If you want to hack on it just go here:

https://github.com/unbit/unbit.github.com


Notes:

- stats option can be set to a unix socket, in such a case you can make a 
tunnel to it using socat
- obviously you can directly run uWSGI on your local machine and avoid the 
tunnel, but you will need to start simulating traffic to enjoy the gift ;)


--
Roberto De Ioris
http://unbit.it
JID: [email protected]

_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to