Permalink
Browse files

tornado server add address option

  • Loading branch information...
1 parent 3d4acd3 commit 8c6c30a62a1f11577443952c2e50a70300d94fcf kyle committed Aug 15, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 README.rst
  2. +1 −1 tcelery/__main__.py
View
@@ -36,7 +36,7 @@ Calling tasks with generator-based interface: ::
tornado-celery can be launched as a web server: ::
- $ python -m tcelery --port=8888
+ $ python -m tcelery --port=8888 --app=proj.celery:celery --address=0.0.0.0
Execute a task asynchronously: ::
View
@@ -27,7 +27,7 @@ def run_from_argv(self, prog_name, argv=None):
logging.info("Starting http server on port %s..." % options.port)
http_server = httpserver.HTTPServer(Application(celery_app=self.app))
- http_server.listen(options.port)
+ http_server.listen(options.port, options.address)
bloader = BaseLoader()
bloader.import_default_modules()

0 comments on commit 8c6c30a

Please sign in to comment.