Fix the command name for the readme

Change-Id: I2ced8b40f2367c849327faa8825ab3152b2eba59
This commit is contained in:
R. Tyler Ballance 2010-08-23 13:59:11 -07:00
parent 2e606c9b8b
commit f055eee57a
1 changed files with 6 additions and 6 deletions

View File

@ -30,27 +30,27 @@ Examples of running spawning
Run the wsgi application callable called "my_wsgi_application" inside the my_wsgi_module.py file::
% spawn my_wsgi_module.my_wsgi_application
% spawning my_wsgi_module.my_wsgi_application
Run whatever is configured inside of the paste-style configuration file development.ini. Equivalent to using paster serve with an ini file configured to use Spawning as the server::
% spawn --factory=spawning.paste_factory.config_factory development.ini
% spawning --factory=spawning.paste_factory.config_factory development.ini
Run the Django app mysite::
% spawn --factory=spawning.django_factory.config_factory mysite.settings
% spawning --factory=spawning.django_factory.config_factory mysite.settings
Run the wsgi application wrapped with some middleware. Pass as many middleware strings as desired after the wsgi application name::
% spawn my_wsgi_module.my_wsgi_application other_wsgi_module.some_wsgi_middleware
% spawning my_wsgi_module.my_wsgi_application other_wsgi_module.some_wsgi_middleware
Run the wsgi application on port 80, with 4 processes each using a threadpool of size 8::
% sudo spawn --port=80 --processes=4 --threads=8 my_wsgi_module.my_wsgi_application
% sudo spawning --port=80 --processes=4 --threads=8 my_wsgi_module.my_wsgi_application
Use a threadpool of size 0, which indicates that eventlet monkeypatching should be performed and wsgi applications should all be called in the same thread. Useful for writing a comet-style application where a lot of requests are simply waiting on a server-side event or internal network io to complete::
% spawn --processes=4 --threads=0 my_wsgi_module.my_comet_application
% spawning --processes=4 --threads=0 my_wsgi_module.my_comet_application
Additional Useful Arguments
===========================